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

Getting KeyError: b'\x13' #134

Closed
prashantmasuriaamdocs opened this issue May 5, 2023 · 1 comment
Closed

Getting KeyError: b'\x13' #134

prashantmasuriaamdocs opened this issue May 5, 2023 · 1 comment

Comments

@prashantmasuriaamdocs
Copy link

While working with postgresql and python, I am getting below errors (these are not persistent, sometimes it the one and sometimes it is the other):
KeyError: b'\x13'
KeyError: b'-'
KeyError: b'4'

Traceback (most recent call last): File "/home/site/wwwroot/shared_code/common_library.py", line 53, in execute_command output = cursor.execute(command) File "/home/site/wwwroot/.python_packages/lib/site-packages/pg8000/legacy.py", line 251, in execute self._context = self._c.execute_simple(operation) File "/home/site/wwwroot/.python_packages/lib/site-packages/pg8000/core.py", line 658, in execute_simple self.handle_messages(context) File "/home/site/wwwroot/.python_packages/lib/site-packages/pg8000/core.py", line 809, in handle_messages self.message_types[code](self._read(data_len - 4), context) KeyError: b'\x13'

We are executing many queries including drop and create tables simultaneously from different functions. We are doing it from Azure durable functions meaning every function will have a separate postgresql connection.

pg8000 version: 1.29.4
postgresql version: 11.18
Python version: 3.8

Let me know if it is something I can help with.

@tlocke
Copy link
Owner

tlocke commented May 9, 2023

Hi @prashantmasuriaamdocs, thanks for your bug report. I think this should now be fixed in version 1.29.5. The commit that fixes it is a84bf8c. Let me know if it's still a problem though.

@tlocke tlocke closed this as completed Jul 15, 2023
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