Skip to content
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

When token fetch fails, return the failure reason to the client. #14014

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

leojaygoogle
Copy link
Contributor

@leojaygoogle leojaygoogle commented Nov 2, 2024

Currently, when token fetch fails, a generic and misleading message like this is shown:

Invalid fetch response, expected 'token' or 'Error' key

After this PR, the actual failure reason returned from the server will be logged and returned to the client.

This is expected to fix issue #13997.

#no-changelog

Currently, when token fetch fails, a generic and misleading message like this is shown:

> Invalid fetch response, expected 'token' or 'Error' key

After this PR, the actual failure reason returned from the server will be logged and returned to the client.
@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@leojaygoogle leojaygoogle marked this pull request as ready for review November 2, 2024 02:56
@ncooke3 ncooke3 linked an issue Nov 2, 2024 that may be closed by this pull request
Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Please add a changelog entry that references the GH issue.

@leojaygoogle
Copy link
Contributor Author

Done.

@leojaygoogle leojaygoogle merged commit 91cb594 into main Nov 5, 2024
23 checks passed
@leojaygoogle leojaygoogle deleted the TOO_MANY_REGISTRATIONS branch November 5, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to fetch token fails to report server error
3 participants