MetaMask / MetaMask/metamask-extension
Error: Fetch failed with status '502': '' in swaps.utils.js
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
https://metamask.sentry.io/issues/4363189420/?referrer=github_plugin
```
Error: Fetch failed with status '502': ''
at _default (shared/lib/fetch-with-cache.js:42:11)
at r.fetchTradesInfo (shared/lib/swaps-utils.js:277:9)
at async Promise.all (index 0)
at exports.default.fetchAndSetQuotes (app/scripts/controllers/swaps.js:287:10)
```
Contributor guide
Research direction
Start with the linked Sentry event, then trace the failure through shared/lib/fetch-with-cache.js, shared/lib/swaps-utils.js, and app/scripts/controllers/swaps.js. Determine why the trades-info fetch returns status 502 and what behavior should replace the failure; the issue is done when the cause is resolved and the relevant flow no longer produces this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100