Skip to content

executemany fails with TLS connection under uvloop #816

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

Closed
snaffi opened this issue Aug 25, 2021 · 3 comments
Closed

executemany fails with TLS connection under uvloop #816

snaffi opened this issue Aug 25, 2021 · 3 comments

Comments

@snaffi
Copy link

snaffi commented Aug 25, 2021

  • asyncpg version: asyncpg==0.22.0
  • PostgreSQL version: 13
  • Python version: 3.8.2
  • Platform: OSX and Linux
  • Do you use pgbouncer?: No
  • Did you install asyncpg with pip?: No, poetry
  • Can the issue be reproduced under both asyncio and
    uvloop?
    : No, it reproduces only under uvloop
Traceback (most recent call last):
  File "asyncpg/protocol/protocol.pyx", line 909, in asyncpg.protocol.protocol.BaseProtocol._writelines
  File "uvloop/sslproto.pyx", line 163, in uvloop.loop._SSLProtocolTransport.writelines
  File "uvloop/sslproto.pyx", line 652, in uvloop.loop.SSLProtocol._write_appdata
TypeError: object of type 'asyncpg.pgproto.pgproto.WriteBuffer' has no len()
Exception ignored in: 'asyncpg.protocol.protocol.CoreProtocol._bind_execute_many_more'
Traceback (most recent call last):
  File "asyncpg/protocol/protocol.pyx", line 909, in asyncpg.protocol.protocol.BaseProtocol._writelines
  File "uvloop/sslproto.pyx", line 163, in uvloop.loop._SSLProtocolTransport.writelines
  File "uvloop/sslproto.pyx", line 652, in uvloop.loop.SSLProtocol._write_appdata
TypeError: object of type 'asyncpg.pgproto.pgproto.WriteBuffer' has no len()
@fantix
Copy link
Member

fantix commented Aug 25, 2021

This is likely a missing memoryview() wrapper, let me check.

@snaffi snaffi changed the title executemany fails with TLS connection and uvloop executemany fails with TLS connection under uvloop Aug 25, 2021
@snaffi
Copy link
Author

snaffi commented Aug 27, 2021

@fantix any news?

@fantix
Copy link
Member

fantix commented Aug 27, 2021

This is a duplicate of #700 and fixed in #715 and v0.23.0, please update.

@elprans elprans closed this as completed Nov 7, 2021
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

3 participants