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
We have a request that is expecting a binary data as request body. I'm seeing that Client.raw_request unconditionally attempts json.dumps on the data. Is there a way to get around this or can you fix it?
File "/Users/rags/aos-cli/lib/python2.7/site-packages/http_test_client.py", line 122, in request
url, method=method, headers=headers, data=data, **kwargs
File "/Users/rags/aos-cli/lib/python2.7/site-packages/aos/sdk/client.py", line 269, in raw_request
return super(Client, self).raw_request(*args, headers=headers, **kwargs)
File "/Users/rags/aos-cli/lib/python2.7/site-packages/http_test_client.py", line 102, in raw_request
data = json.dumps(data)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 244, in dumps
return _default_encoder.encode(obj)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 201, in encode
return encode_basestring_ascii(o)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb4 in position 11: invalid start byte
The text was updated successfully, but these errors were encountered:
I’m kind hesitant to add this: the idea of this library is simple client that you can quickly bootstrap your integration testing with. Thus the main focus is at supporting JSON services, not a full featured HTTP client.
We have a request that is expecting a binary data as request body. I'm seeing that
Client.raw_request
unconditionally attemptsjson.dumps
on thedata
. Is there a way to get around this or can you fix it?The text was updated successfully, but these errors were encountered: