Skip to content

Conversation

@tgolen
Copy link
Contributor

@tgolen tgolen commented Aug 14, 2020

Fixes #128

@tgolen tgolen requested a review from AndrewGable August 14, 2020 19:50
@tgolen tgolen self-assigned this Aug 14, 2020
console.info('[API] UnhandledError', responseData);
})
// eslint-disable-next-line no-unused-vars
// This will catch any HTTP network errors (like 404s and such), not to be confused with jsonCode which this
Copy link
Contributor

Choose a reason for hiding this comment

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

Does catch 404s or not? The way I read the comment is it does catch 404s and I thought it only caught errors when the fetch actually fails to make the request?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it catches 404s and any network layer failure. It does NOT catch jsonCode errors. Any suggestions to make the comment better?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok I didn't realize it caught 404s, so this is good!

@AndrewGable AndrewGable merged commit 8aebadd into master Aug 14, 2020
@AndrewGable AndrewGable deleted the tgolen-remember-last-chat branch August 14, 2020 21:47
mountiny pushed a commit that referenced this pull request Feb 12, 2025
andriivitiv added a commit to andriivitiv/ExpensifyApp that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redirect to the last chat you were in after logging in

3 participants