Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket.IO or Engine.IO issues #383

Open
Mantiph opened this issue Aug 31, 2023 · 1 comment
Open

Socket.IO or Engine.IO issues #383

Mantiph opened this issue Aug 31, 2023 · 1 comment

Comments

@Mantiph
Copy link

Mantiph commented Aug 31, 2023

The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)
[2023-08-31 07:00:38,018] ERROR in app: Exception on /get_title [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/root/trape/trape/core/stats.py", line 97, in home_get_title
return json.dumps({'status' : 'OK', 'title' : html})
File "/usr/local/lib/python3.10/dist-packages/flask/json/init.py", line 41, in dumps
return current_app.json.dumps(obj, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/flask/json/provider.py", line 180, in dumps
return json.dumps(obj, **kwargs)
File "/usr/lib/python3.10/json/init.py", line 238, in dumps
**kw).encode(obj)
File "/usr/lib/python3.10/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.10/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.10/dist-packages/flask/json/provider.py", line 120, in _default
raise TypeError(f"Object of type {type(o).name} is not JSON serializable")
TypeError: Object of type bytes is not JSON serializable

@rbrtjns90
Copy link

Try my version and see if it works for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants