Hi, I get a 500 error with the following error message
2021-02-08 20:43:23,510: Exception on /go [POST]
Traceback (most recent call last):
File "/home/grumpyp/.virtualenvs/onpage_functions.py", line 54, in count_words
size_tag = size_tags(html_text)
File "/home/grumpyp/.virtualenvs/onpage_functions.py", line 108, in size_tags
h1s = text.find_all('h1')
AttributeError: 'str' object has no attribute 'find_all'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/grumpyp/.virtualenvs/myvirtualenv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/grumpyp/.virtualenvs/myvirtualenv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/grumpyp/.virtualenvs/myvirtualenv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/grumpyp/.virtualenvs/myvirtualenv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/grumpyp/.virtualenvs/myvirtualenv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/grumpyp/.virtualenvs/myvirtualenv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/grumpyp/.virtualenvs/main.py", line 14, in hello_world
words = onpage_functions.count_words(crawl_results[0],results, keyword, crawl_results[1])
File "/home/grumpyp/.virtualenvs/onpage_functions.py", line 77, in count_words
if result_desktop_json["error"] or result_mobile_json["error"]:
KeyError: 'error'
It works on my local machine perfectly so I really don't know what to do and where to start. If i open my app file it says syntax error
in one row which looks somehow like that
kw_häufigkeit = tf_idf(text_str, keyword)