You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've detected that when we publish a message with headers that include boolean values (see example below), the NATS client fails with the error: 'bool' object has no attribute 'encode'
I saw that the _send_publish method inside the client.py is doing a value.encode(), which only supports header values of the type string.
Shouldn't accepting bool header values be a valid option?
The text was updated successfully, but these errors were encountered:
I've detected that when we publish a message with headers that include boolean values (see example below), the NATS client fails with the error:
'bool' object has no attribute 'encode'
{"type": "GetStamp", "hasAvailableCapacity": True}
I saw that the _send_publish method inside the client.py is doing a value.encode(), which only supports header values of the type string.
Shouldn't accepting bool header values be a valid option?
The text was updated successfully, but these errors were encountered: