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
feat: verbose Failed to fetch error #6938
Conversation
@mathis-m What happens right now if it's an invalid url provided as compared to a no-network available? Is it a different |
08faf8a
to
446db33
Compare
@tim-lai the error we can see in developer console is not inferable via javascript this is a security feature. |
Signed-off-by: mathis-m <mathis.michel@outlook.de>
446db33
to
c0abad3
Compare
@mathis-m Ok, thanks for the update. However, let's remove references to the console. To follow linting best practices, I also think we should remove or comment out the |
@tim-lai Thanks for the cleanup. I did not have the time to work on that! |
Signed-off-by: mathis-m mathis.michel@outlook.de
Description
make TypeError: Failed to fetch more verbose.
According to specification https://fetch.spec.whatwg.org/ it is not possible to distinguish between network errors:
It is only viewable via developer tools e.g. console.
In order to make the ui information more verbose I added the following text to clarify the current response state:
"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know."
Motivation and Context
Fixes #4560
How Has This Been Tested?
Screenshots (if appropriate):
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests