Widget: 404 error on Polygon Auto Router
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
I noticed another issue with the widget, and maybe there's a similar solution for this one as well. When I am on the Polygon network, the widget fetches the price correctly, but it also returns a 404 error. I was looking at the API calls, and it seems like it makes 2 calls - one to the polygon v3 pool (correct) and one to the polygon v2 pool (error). Unless I am missing something, there is no polygon v2 pool, which is why the 404 error happens. Is there a way to exclude this v2 API call when fetching price on the Polygon network?
This is the bad call:
https://cloudflare-ipfs.com/ipns/api.uniswap.org/v1/pools/v2/polygon-mainnet.json
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the widget's price-fetching logic for the Polygon network and the two API calls, including the v2 URL shown in the report. Done means Polygon price fetching no longer produces the invalid v2 request or its 404 error while the valid v3 request still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100