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
When POST fails here, response_json won't be assigned and even response.json may not be valid. This leads to an error here. Not sure what was intended here: response.content or response.text or others?
Fixed in master. I moved line 1295 response_json = response.json() up one line above the if block.
In some cases of an error response, I noticed that the server doesn't always return JSON, which if I come across again will report for fixing on the server side. But the end point we are dealing with appears to return JSON just fine in error circumstances.
When POST fails here,
response_json
won't be assigned and evenresponse.json
may not be valid. This leads to an error here. Not sure what was intended here:response.content
orresponse.text
or others?encode_utils/encode_utils/connection.py
Line 1303 in 36c527f
The text was updated successfully, but these errors were encountered: