Uniswap / Uniswap/interface

UI Doesn't work when served from localhost IPFS.

Open
#1,297 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug p0
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
When accessing the page via localhost IPFS (e.g., IPFS Desktop), nothing works. The issue is that infura appears to be blocking requests from localhost origins.

Steps to Reproduce

  1. Install IPFS Companion and IPFS Desktop.
  2. Navigate to https://app.uniswap.org
  3. Notice that you are redirected to http://app.uniswap.org.ipns.localhost:8080
  4. Notice that you are unable to get the price of any pairs.

Expected Behavior
The website works properly when accessed via localhost.

Additional Context
Probably related to #1091.

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

Reproduce the failure by serving the interface through the localhost IPFS URL described in the issue, then investigate requests to Infura and compare the context in issue #1091. Done means pair prices and the rest of the website work when accessed through localhost IPFS.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.