Could not make the request because -> 403 Forbidden
jsjoeio opened this issue · 2 comments
jsjoeio commented
Do you know if Venmo updated their API recently?
I've been using your package for the past 6 months or so and haven't changed any code but noticed I'm now getting a 403 error 🤔
File "/home/runner/work/monthly-venmo/monthly-venmo/health.py", line 97, in <module>
main(now)
File "/home/runner/work/monthly-venmo/monthly-venmo/health.py", line 22, in main
venmo = Venmo(access_token)
File "/home/runner/work/monthly-venmo/monthly-venmo/utils.py", line 65, in __init__
self.client = Client(access_token=access_token)
File "/opt/hostedtoolcache/Python/3.9.8/x64/lib/python3.9/site-packages/venmo_api/venmo.py", line 15, in __init__
self.__profile = self.user.get_my_profile()
File "/opt/hostedtoolcache/Python/3.9.8/x64/lib/python3.9/site-packages/venmo_api/apis/user_api.py", line 26, in get_my_profile
response = self.__api_client.call_api(resource_path=resource_path,
File "/opt/hostedtoolcache/Python/3.9.8/x64/lib/python3.9/site-packages/venmo_api/utils/api_client.py", line 58, in call_api
return self.__call_api(resource_path=resource_path, method=method,
File "/opt/hostedtoolcache/Python/3.9.8/x64/lib/python3.9/site-packages/venmo_api/utils/api_client.py", line 103, in __call_api
processed_response = self.request(method, url, session,
File "/opt/hostedtoolcache/Python/3.9.8/x64/lib/python3.9/site-packages/venmo_api/utils/api_client.py", line 139, in request
validated_response = self.__validate_response(response, ok_error_codes=ok_error_codes)
File "/opt/hostedtoolcache/Python/3.9.8/x64/lib/python3.9/site-packages/venmo_api/utils/api_client.py", line 170, in __validate_response
raise HttpCodeError(response=response)
venmo_api.models.exception.HttpCodeError: HTTP Status code is invalid. Could not make the request because -> 403 Forbidden.
Error: Invalid Json
Possibly related #55
jsjoeio commented
I believe you are using a different package.
LOL - I'm sorry, I knew your avatar looked different than the other maintainer 🤦♂️