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
Add support for API timeouts to auth-next #2915
Conversation
Binary Size ReportAffected SDKsNo changes between base commit (11dd5ee) and head commit (ef1d48a). Test Logs
|
@@ -88,7 +92,8 @@ export async function performApiRequest<T, V>( | |||
} else { | |||
// TODO probably should handle improperly formatted errors as well | |||
// If you see this, add an entry to SERVER_ERROR_MAP for the corresponding error | |||
throw new Error(`Unexpected API error: ${json.error.message}`); | |||
console.error(`Unexpected API error: ${json.error.message}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this meant to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the console.error since we never expect to see these, it would help in debugging since we mask json.error.message with an error from the map (in this case, internal-error)
6021352
to
b8e5442
Compare
b8e5442
to
07ac4b2
Compare
* Add support for API timeouts to auth-next * PR feedback * [AUTOMATED]: Prettier Code Styling
* Add support for API timeouts to auth-next * PR feedback * [AUTOMATED]: Prettier Code Styling
* Add support for API timeouts to auth-next * PR feedback * [AUTOMATED]: Prettier Code Styling
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
If not, go file an issue about this before creating a pull request to discuss.
Testing
API Changes
us make Firebase APIs better, please propose your change in an issue so that we
can discuss it together.