deep-foundation / deep-foundation/deepcase-app
Error: Failed to execute 'fetch' on 'Window': Invalid value
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```
Unhandled Runtime Error
Error: Failed to execute 'fetch' on 'Window': Invalid value
Call Stack
new ApolloError
node_modules/@apollo/client/errors/index.js (29:0)
eval
node_modules/@apollo/client/core/QueryManager.js (630:0)
both
node_modules/@apollo/client/utilities/observables/asyncMap.js (16:45)
eval
node_modules/@apollo/client/utilities/observables/asyncMap.js (9:56)
new Promise
Object.then
node_modules/@apollo/client/utilities/observables/asyncMap.js (9:0)
Object.eval [as error]
node_modules/@apollo/client/utilities/observables/asyncMap.js (17:0)
notifySubscription
node_modules/zen-observable-ts/module.js (137:0)
onNotify
node_modules/zen-observable-ts/module.js (176:0)
SubscriptionObserver.error
node_modules/zen-observable-ts/module.js (229:0)
eval
node_modules/@apollo/client/utilities/observables/iteration.js (4:49)
Array.forEach
iterateObserversSafely
node_modules/@apollo/client/utilities/observables/iteration.js (4:0)
Object.error
node_modules/@apollo/client/utilities/observables/Concast.js (37:42)
notifySubscription
node_modules/zen-observable-ts/module.js (137:0)
onNotify
node_modules/zen-observable-ts/module.js (176:0)
SubscriptionObserver.error
node_modules/zen-observable-ts/module.js (229:0)
handleError
node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js (117:0)
eval
node_modules/@apollo/client/link/http/createHttpLink.js (111:58)
```
Workaround: double check your token, use incognito mode in browser.
We should fix this issue by making a better error message in this case.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the browser failure with an invalid token, then start from the Apollo Client HTTP path shown in node_modules/@apollo/client/link/http/createHttpLink.js and parseAndCheckHttpResponse.js. Done means this case displays a clearer error message instead of the generic invalid fetch value; no test file is mentioned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100