question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: NetworkError when attempting to fetch resource - firefox issue

See original GitHub issue

Hi, I have simple function for logout that looks like this

public logoutHandler() {
    fetch('/logout', <RequestInit>{
      method: 'get',
      credentials: 'include'
    }).then((response) => {
      console.log(document.cookie);
      window.location.href = '/login';
    });
  }

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?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:23
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

75reactions
ariden83commented, Jun 21, 2017

On chrome, I’ve got “TypeError: Failed to fetch” On firefox, the same “TypeError: NetworkError when attempting to fetch resource” …

59reactions
fabdaricecommented, Jul 17, 2017

Can we reopen this ticket? I’m seeing the same error, but only on Firefox. Also, nothing shows up in the Network tab.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Fetch] "NetworkError when attempting to fetch resource ...
This issue is about the timing of the exception and not specifically about fetch. Let me reiterate: What it does is: 1. Start...
Read more >
TypeError: NetworkError when attempting to fetch resource ...
In Firefox I see this error: TypeError: NetworkError when attempting to fetch resource I do not know what kind of problem it is....
Read more >
Firefox: NetworkError when attempting to fetch resource - Reddit
I keep getting the error of “NetworkError when attempting to fetch resource” when I attempt to get a resource from a localhost server...
Read more >
NetworkError when attempting to fetch resource - Zaraz
Seems like your Firefox is configured to block tracking, so it blocks the requests to Google Ads. andersjohansson February 23, 2022, 6:27pm ...
Read more >
Source map errors - Firefox Developer Tools
See Bug 1437937: WebExtensions Doesn't Find Source Maps for details. Source-Map-Fehler: TypeError: NetworkError when attempting to fetch resource.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found