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
_get_engage_page raises "TypeError: the JSON object must be str, bytes or bytearray, not NoneType" when the request fails with a 429 rate limited response.
WARNING: The server couldn't fulfill the request.
WARNING: Error code: 429
WARNING: Reason: Too Many Requests
...
File "/var/task/mixpanel_api/__init__.py", line 1631, in _get_engage_page
data = json.loads(response)
File "/var/lang/lib/python3.9/json/__init__.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
The text was updated successfully, but these errors were encountered:
_get_engage_page
raises "TypeError: the JSON object must be str, bytes or bytearray, not NoneType" when the request fails with a 429 rate limited response.The call to
self.request
in_get_engage_page
on line 1956 doesn't return a value for HTTP error codes below 500. (See the logic for handling HTTP errors inrequest
.) The next line in_get_engage_page
callsjson.loads(response)
whereresponse
isNone
and a TypeError is raised.I'm hitting the following:
The text was updated successfully, but these errors were encountered: