-
Notifications
You must be signed in to change notification settings - Fork 248
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
cursor.close() can throw UnicodeDecodeError #569
Comments
Can reproduce under 3.9 as well (likewise for 3.8.20, 3.10.16, 3.12.8, 3.13.1) - only 3.11.11 passes reliably.
Re-ran thrift-gen via |
looking slightly deeper, this appears to be related to the different Corollary something appears to be wrong in the generated code that doesn't use fastbinary (or fastbinary is more robust to certain edgecases). Potentially something with the struct definitions in the thrift files? Maybe even something server-side. When calling
|
Wrote about the cause of the issue in: #566 (comment) |
This was witnessed during #566
The issue only happened with Python 3.9. It is probably related to using native vs interpreted Thrift protocol - when setting fallback=False when creating TBinaryProtocolAccelerated in my environment with Python 3.9 the tests failed early while other Python versions had no issues. Changing to TBinaryProtocol led to seeing the error on all 3.* Python versions (but not on Python 2.7).
It is not clear at this moment whether this is an issue in my Ubuntu 20.04 environment or there is something wrong on Python 3.9 in the Thrift package. Tried changing from thrift 0.16.0 to newer versions but the issue still occurred.
I see several questions here:
The text was updated successfully, but these errors were encountered: