Closed scottohara closed 6 years ago
Locking due to inactivity.
This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.
If you think you're experiencing something similar to what you've found here: please open a new issue, follow the template, and reference this issue in your report.
Thanks!
When a URL fails to load, the message to the user is simply:
Failed to load spec
As we know, there are a couple of very common reasons why a URL might fail to load:
https://
, but the URL being loaded ishttp://
, most browsers will block the fetch and report the following console error:The error messages for both of these common failure cases are buried in the browser console.
Surfacing more information to the user should reduce the number of issues and support requests from users struggling to get their URLs to load.
Unfortunately, for the CORS issue, there's no way (that I'm aware of) to easily detect this in Javascript (the error that Chrome throws is just
TypeError: Failed to fetch
).However the mixed content issue can be easily detected, with something like this (in
download-url.js
):...and then show a more detailed error message in the layout:
Thoughts?