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

error handling on frontend xmlhttp request side #39

Open
xIrusux opened this issue Aug 2, 2019 · 0 comments
Open

error handling on frontend xmlhttp request side #39

xIrusux opened this issue Aug 2, 2019 · 0 comments

Comments

@xIrusux
Copy link

xIrusux commented Aug 2, 2019

Hey guys - i just started looking into error handling on the frontend side when making requests.

I wanted to understand how come we always do lots of error handling on the backend but have less on frontend requests.

I thought the below was interesting and one could try to use XMLHttpRequestEventTarget.onerror for additional safeguarding (not yet sure how it all works so this is just a idea of something to look into)

https://stackoverflow.com/questions/45067892/xmlhttprequest-onerror-handler-use-case
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror

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

No branches or pull requests

1 participant