-
Notifications
You must be signed in to change notification settings - Fork 418
invalid length of startup packet #313
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Comments
elprans
added a commit
that referenced
this issue
Jun 11, 2018
`#if FOO == BAR` is true if neither BAR, nor FOO are defined, and on BSDs machine endianness is declared as `_BYTE_ORDER`, not `__BYTE_ORDER`, so we would compile a big-endian variant on little-endian machines. Fixes #313.
Merged
elprans
added a commit
that referenced
this issue
Jun 11, 2018
`#if FOO == BAR` is true if neither BAR, nor FOO are defined, and on BSDs machine endianness is declared as `_BYTE_ORDER`, not `__BYTE_ORDER`, so we would compile a big-endian variant on little-endian machines. Fixes #313.
I compiled the master version and now all works well. |
Sorry to reopen this issue, but I am seeing the same error with the latest released asyncpg (0.18.2) as well as today's master. Here is the postgres log
|
Error start from version >= 1.18.0 |
No Sign up for free
to join this conversation on GitHub.
Already have an account?
No Sign in to comment
uvloop?: YES
The following script :
import asyncio
import asyncpg
import uvloop
async def run():
conn = await asyncpg.connect(host='127.0.0.1', port='5432', user='root', password='pippo', database='postgres', ssl=None)
values = await conn.fetch("SELECT * FROM pg_type")
await conn.close()
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
returns:
asyncpg.exceptions.ConnectionDoesNotExistError: connection was closed in the middle of operation
and postgresql:
LOG: invalid length of startup packet
With previous asyncpg version 0.13.0 all works well
The text was updated successfully, but these errors were encountered: