Skip to content

remove misleading raise_for_status #2948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
6 changes: 3 additions & 3 deletions endpoints/getting-started/clients/google-jwt-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def make_jwt_request(signed_jwt, url='https://your-endpoint.com'):
'content-type': 'application/json'
}
response = requests.get(url, headers=headers)

print(response.status_code, response.content)
response.raise_for_status()
return response.text

# [END endpoints_jwt_request]


Expand All @@ -96,4 +96,4 @@ def make_jwt_request(signed_jwt, url='https://your-endpoint.com'):
args.sa_email,
args.audience,
expiry_length)
print(make_jwt_request(keyfile_jwt, args.host))
make_jwt_request(keyfile_jwt, args.host)