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

An error has occurred | error:unpack_from requires a buffer of at least 4 bytes #116

Open
LeonKarabchevsky opened this issue Oct 4, 2020 · 0 comments

Comments

@LeonKarabchevsky
Copy link

I keep getting this error randomly in v1.9.1:

"An error has occurred | error:unpack_from requires a buffer of at least 4 bytes
results = cur.fetchmany(batch_size)\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/init.py", line 786, in fetchmany\n row = self.fetchone()\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/init.py", line 771, in fetchone\n row = self._session.fetchone()\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 1592, in fetchone\n if not self.next_row():\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 1603, in next_row\n self.process_token(marker)\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 1551, in process_token\n return handler(self)\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 1669, in \n tds_base.TDS_ROW_TOKEN: lambda self: self.process_row(),\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 705, in process_row\n curcol.value = self.row[i] = curcol.serializer.read(r)\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds_types.py", line 515, in read\n return r.get_int()\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 177, in get_int\n return self.unpack(_int_le)[0]\n', ' File "/usr/local/lib/python3.7/site-packages/pytds/tds.py", line 161, in unpack\n return struc.unpack_from(buf, offset)\n']

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

1 participant