We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import asyncio import asyncpg import uvloop
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()
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())
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
asyncpg.exceptions.ConnectionDoesNotExistError: connection was closed in the middle of operation
LOG: invalid length of startup packet
With previous asyncpg version 0.17.0 all works well. See issue #313
The text was updated successfully, but these errors were encountered:
Fix bswap on *BSD
a6b7775
This is a regression of #313, since pgproto had picked up an unfixed version of hton.h Fixes: #396
ab0bc71
Fix released in 0.18.3.
Sorry, something went wrong.
Great. Thanks a lot!!!
No branches or pull requests
the issue with a local PostgreSQL install?: NO
uvloop?: YES
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.17.0 all works well.
See issue #313
The text was updated successfully, but these errors were encountered: