conductor-sdk / conductor-python

Conductor OSS SDK for Python programming language
Apache License 2.0
62 stars 29 forks source link

Polling error with conductor-python 1.0.33 #107

Closed phmurias-invitae closed 2 years ago

phmurias-invitae commented 2 years ago

When migrating from version 1.0.32 to version 1.0.33 task polling stopped working.

The worker is polling to an empty task queue, and we get:

File ".../site-packages/conductor/client/http/api_client.py", line 612, in __deserialize_model
    klass.attribute_map[attr] in data and
TypeError: a bytes-like object is required, not 'str'

It seems that the error originated in this commit when the following check was removed:

        if data == b'':
            return None
gardusig commented 2 years ago

Yes, you're right! This bug should be solved by next release ✅ Thanks for the feedback!

phmurias-invitae commented 2 years ago

Thank you @gardusig