-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
There have been 2 brief occasions in the past week where we've received JSONDecodeErrors when calling the tax_for_order endpoint:
File "taxjar/client.py", line 43, in tax_for_order
return self.responder(request)
File "taxjar/response.py", line 7, in from_request
return TaxJarResponse().data_from_request(request)
File "taxjar/response.py", line 10, in data_from_request
response = request.json()
File "requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)Both occasions were very brief (under 45 seconds) so it's not been possible to reproduce the issue. It seems similar to #9. It could be that the API is returning non-JSON data in some situations.
Metadata
Metadata
Assignees
Labels
No labels