Uniswap / Uniswap/interface

Widget: 404 error on Polygon Auto Router

Open
#3,782 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.