GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Exception: Unknown netid: 80001 · Issue #314 · uniswap-python/uniswap-python

Exception: Unknown netid: 80001 #314

New issue
Copy link
New issue
Copy link
Open
Open
Exception: Unknown netid: 80001#314
Copy link

Description

@philmoreau
philmoreau
opened on Jan 15, 2023
Issue body actions

After installing either through pip or git, and running the simple code in the "Getting Started" page of the doc, I get :

Traceback (most recent call last):
  File "/app/main.py", line 29, in <module>
    main()
  File "/app/main.py", line 16, in main
    uniswap = Uniswap(address=address, private_key=private_key, version=version, provider=provider)
  File "/usr/local/lib/python3.9/site-packages/uniswap/uniswap.py", line 128, in __init__
    raise Exception(f"Unknown netid: {self.netid}")  # pragma: no cover
Exception: Unknown netid: 80001

Activity

  1. ErikBjare commented on Jan 15, 2023

    @ErikBjare
    ErikBjare
    on Jan 15, 2023
    Member
    More actions

    Are you using a Polygon testnet RPC? (a brief search suggested so)

    You need to add the appropriate network here, including contract addresses for the deployment you want to use: https://github.com/uniswap-python/uniswap-python/blob/master/uniswap/constants.py

  2. philmoreau commented on Jan 15, 2023

    @philmoreau
    philmoreau
    on Jan 15, 2023
    Author
    More actions

    I see. Thanks for pointing me in the right direction! I'll try to figure out how this works.

    Amazing reply time by the way.

    Reacted by Erik Bjäreholt
  3. koots1234 commented on Dec 27, 2023

    @koots1234
    koots1234
    on Dec 27, 2023
    More actions

    I'm also having this same error, using Sepolia Testnet, I've checked constants.py and its listed in _netid_to_name. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.