-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Python driver fails with unexpected bytes #270
Comments
i'm getting this error when a changefeed or the .changes() method shares the same connection of the existing connection to rethinkdb that responsible to insert the data . |
@jhay06 do you have a reproducible example? The code for the python driver has changed a lot in almost 8 years |
i dont have access on my laptop now . but the current rethinkdb python drivers still working as off now. to remove the error and plan to run the change feed and insert method on the same app .you should create new connection for change feed and run it on a thread . dont share it to the existing connection |
If you share the same connection, then it works? Sorry for the questions, but I need to completely understand the environment/setup in order to restrict the area of code where the error is triggered. |
no , changefeed must be on its own connection instance exclusive. |
Ok. On what version of the driver are you? What version of |
I'm running tasks using celery in Python with python rethinkdb driver. I followed Ten-minute guide with Rethinkdb and Python and it seems to be running fine for a while, but it fails with UnicodeDecodeError after some time.
The first line is a hint I modified to check where the error comes from:
I think the root cause of this issue is that the part of the socket receives response from the rethinkdb server does the wrong behavior.
The text was updated successfully, but these errors were encountered: