Skip to content

executemany fails with TLS connection under uvloop #816

Closed

Description

@snaffi
  • 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()

Activity

  1. fantix commented on Aug 25, 2021

    @fantix
    Member

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

  2. changed the title [-]executemany fails with TLS connection and uvloop[/-] [+]executemany fails with TLS connection under uvloop[/+] on Aug 25, 2021
  3. snaffi commented on Aug 27, 2021

    @snaffi
    Author

    @fantix any news?

  4. fantix commented on Aug 27, 2021

    @fantix
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions