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.

Production build: `Uncaught (in promise) Error: Failed to execute 'fetch' on 'Window': Illegal invocation`

See original GitHub issue

When starting the production build of react-admin, react-admin stays at the loading screen and this error occurs:

Uncaught (in promise) Error: Failed to execute 'fetch' on 'Window': Illegal invocation

Edit: Apparently this happens when the FeathersJS server is not reachable (network/CORS issues). But nothing in the network tab in Developer Tools. A much more descriptive error message would be nice.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
strarsiscommented, Mar 15, 2022
0reactions
josxcommented, Mar 15, 2022

So, try to share this in feathers doc, would be illuminating.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'fetch' on 'Window': Illegal invocation - Stack ...
The problem was that I specified headers in the request options as a list of objects, when it should be an object. I...
Read more >
Using in browser: "TypeError: Failed to execute 'fetch' on ...
In Firefox 81.0: TypeError: 'fetch' called on an object that does not implement interface Window.
Read more >
[SOLVED] Failed to execute 'fetch' on 'Window' - Moralis Forum
All of a sudden i keep getting Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'Window': 1 argument required, ...
Read more >
Failed to execute 'fetch' on 'Window': Illegal invocation
Hi there,. I'm attempting to integrate my airtable database api into a React project. I installed airtable using 'npm install airtable'.
Read more >
Failed to execute 'fetch' on 'Window': Illegal invocation ...
I trying to use fetch for calls to backend from react without libs like Axios. api.ts export const sendSuggestion = ((data: any): Promise<any> ......
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