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
My SSO always worked. But since the release of 2.155.0 suddenly my SSO stopped working and keeps throwing a 523 status code with the error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
? Make sure to obtain an access token after login in on the SSO page from google
? Build your credentials
fromgoogle.oauth2.credentialsimportCredentials# serializer contains the access_token and scope obtained after succesful google logincredentials=Credentials(token=serializer.data['access_token'], scopes=serializer.data['scope'])
? Apply credentials to service
fromgoogleapiclient.discoveryimportbuild# create the service we want to utilizeuser_info_service=build(serviceName='oauth2', version='v2', credentials=credentials)
? Make a request to obtain user info which the user gave consent for
# Try to obtain the user info which the user gave consent foruser_info=user_info_service.userinfo().get().execute()
Full Example:
fromgoogle.oauth2.credentialsimportCredentialsfromgoogleapiclient.discoveryimportbuild# serializer contains the access_token and scope obtained after succesful google logincredentials=Credentials(token=serializer.data['access_token'], scopes=serializer.data['scope'])
# create the service we want to utilizeuser_info_service=build(serviceName='oauth2', version='v2', credentials=credentials)
# Try to obtain the user info which the user gave consent foruser_info=user_info_service.userinfo().get().execute()
Version
2.154.0
seems also to be affected.My SSO always worked. But since the release of
2.155.0
suddenly my SSO stopped working and keeps throwing a 523 status code with the error:A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Environment details
Python 3.13.0
pip 24.3.1
google-api-python-client
version:Version: 2.155.0
Steps to reproduce
Full Example:
The last step (4.) throws the error.
Workaround
I do have a workaround,
Edit: I do have to add that my workaround request takes a very long time to complete.
The text was updated successfully, but these errors were encountered: