-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
TypeError: NetworkError when attempting to fetch resource - firefox issue #310
Comments
Firefox contains a native fetch implementation and does not use this polyfill code. You can use the Network tab in Firefox's web console to debug the request and response. |
On chrome, I've got "TypeError: Failed to fetch" |
Have you check errors like CORS? |
@ariden83 did you figure out what was causing the errors? I'm seeing the same issues in isolated cases |
Can we reopen this ticket? |
There maybe relational link. Fetch api not working in firefox addon : firefox |
I'm seeing the same error,except chrome |
I have the same exact issue. everything is fine in chrome but firefox caches wrong fetch response. and the worst of all is that it caches this error as response of that particular endpoint of my api for a LONG time. |
Having the same issue when I have |
Related issue. I was accessing Function app, via Logic app, when I got the above error. Following worked for me:
Hope that helps. |
@manoharreddyporeddy function app > platform features tab etc |
@aguayUmbt they are menu/sequence of operations to be done in the Azure portal |
@jcimoch, I am having the same issue. Please tell me how to debug it. :) |
For those who are writing Firefox addon, the solution here helped me, I have to add
Chrome just works without the need to add this permission... |
If anyone comes across this, I had the same error in Firefox (but with a different application) and it turns out it was because the (self-signed) SSL certificate I was using on the server was not trusted in Firefox. I added the self-signed root CA to Firefox and all was well. |
In our case, the solution was not using the wild card for
|
Check if you are using http or https on your server. For me, the error was coming online with heroku server because they use https while in local machine I was using http and it was working. |
I managed to solve the problem by monitoring the headers returned by github used on the demo page.
Hope it helps. |
For me, Swagger UI for some reason crashes when I use examples that consume multilanguage resource files. So I removed the examples from Swagger config and Swager UI started working properly again - of course, without examples. |
Tried in a Rails 6 only-api app with CORS enabled, using NGROK and no luck. Tried instead {
...
"permissions": [
"storage",
"<all_urls>"
]
} and got it working. |
Same issue. But what is particular in my situation is that I need to fetch a blob url, like "blob:https://images.google.com.hk/9143673d-b976-4416-b29c-85ce48a77da6". However, if I declare manifest.json as
Firefox does not recognize it, and throws a warning message, "Reading manifest: Warning processing permissions: Error processing permissions.1: Value "blob:" must either: must either [must either [be one of ["clipboardRead", "clipboardWrite", "geolocation", "idle", "notifications"], be one of ["bookmarks"], be one of ["find"], be one of ["history"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["topSites"], be one of ["activeTab", "tabs", "tabHide"], be one of ["browserSettings"], be one of ["cookies"], be one of ["downloads", "downloads.open"], be one of ["privacy"], be one of ["webNavigation"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["captivePortal"], be one of ["browsingData"], be one of ["devtools"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["normandyAddonStudy"], be one of ["pkcs11"], be one of ["geckoProfiler"], be one of ["sessions"], be one of ["urlbar"], be one of ["contextualIdentities"], be one of ["dns"], be one of ["activityLog"], be one of ["management"], be one of ["networkStatus"], be one of ["proxy"], be one of ["nativeMessaging"], be one of ["telemetry"], be one of ["theme"], or match the pattern /^experiments(.\w+)+$/], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|*)://(*|*.[^*/]+|[^*/]+)/.$/, or match the pattern /^file:///.$/], or match the pattern /^resource://(*|*.[^*/]+|[^*/]+)/.$|^about:/]" Maybe the pattern /^(https?|wss?|file|ftp|*)://(*|*.[^*/]+|[^*/]+)/.*$/ can provide some hints, but useless for a blob URL. 😞 I don't need to declare any permission about blob URL at chrome. All right, it looks like <all_urls> is the only way. |
I had this problem and turned out that someone had put redirection (window.location = '/') not in the promise's resolve function, but immediately after the fetch call, so the application was aborting the call and redirecting to the index. |
Hi, I have simple function for logout that looks like this
It is workin in chrome but in firefox I get "TypeError: NetworkError when attempting to fetch resource.1 (unknown)". Client side app is on the same server as backend, I'm using https connection with self-signed cert, could it be the issue?
The text was updated successfully, but these errors were encountered: