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 tried installing it in mac os. On running the command audius, it panics and throws a json decoding error. On further investigating the error, it looks like the request happening in get_api_endpoint() function throws an error code 403 and hence the data in response is not json decodable. The same URL gives correct response on browser.
Possible solutions might be throw a user friendly error by checking r.status_code == 200 or add few additional headers so that your backend considers this request as if it's sent from a browser and then parse it.
The text was updated successfully, but these errors were encountered:
I tried installing it in mac os. On running the command
audius
, it panics and throws a json decoding error. On further investigating the error, it looks like the request happening in get_api_endpoint() function throws an error code403
and hence the data in response is not json decodable. The same URL gives correct response on browser.Possible solutions might be throw a user friendly error by checking
r.status_code == 200
or add few additional headers so that your backend considers this request as if it's sent from a browser and then parse it.The text was updated successfully, but these errors were encountered: