asynch icon indicating copy to clipboard operation
asynch copied to clipboard

`None` input to a `String` field raise an `TypeError`

Open samuelcolvin opened this issue 1 year ago • 2 comments

Error is:

   await self.write_items(prepared)
  File "/usr/local/lib/python3.11/site-packages/asynch/proto/columns/stringcolumn.py", line 13, in write_items
    await self.writer.write_strings(items)
  File "/usr/local/lib/python3.11/site-packages/asynch/proto/streams/buffered.py", line 49, in write_strings
    await self.write_varint(len(packet))
                            ^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

samuelcolvin avatar Aug 09 '23 13:08 samuelcolvin

I encountered the same issue.

Wally110 avatar Aug 22 '23 05:08 Wally110

Use Nullable(String) instead of String

long2ice avatar Aug 22 '23 06:08 long2ice