Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ape makes far too many RPC requests to eth_chainId #2462

Closed
2 tasks done
fubuloubu opened this issue Jan 8, 2025 · 3 comments
Closed
2 tasks done

Ape makes far too many RPC requests to eth_chainId #2462

fubuloubu opened this issue Jan 8, 2025 · 3 comments
Labels
category: bug Something isn't working

Comments

@fubuloubu
Copy link
Member

Have you ensured that all of these are up to date?

  • Ape
  • Ape plugins

What version of Ape are you on?

0.8.24

What command(s) is the bug in?

maybe ape-ethereum

Operating System

Linux

Description

I am trying to run the code mentioned below but am getting rate limited on too many requests to eth_chainId to my provider. It should not require executing so many requests for chain ID, smells of something that should be cached but isn't

Note: originally, a solution was attempted in #483 but I am still having these types of issues

Reproduction code

ApeWorX/uniswap-sdk#4 (comment)

@fubuloubu fubuloubu added the category: bug Something isn't working label Jan 8, 2025
Copy link

linear bot commented Jan 8, 2025

@fubuloubu
Copy link
Member Author

Think this was an issue related to just infura, @antazoey to confirm (and close if accurate)

@antazoey
Copy link
Member

yep, it was just Infura, fixed by ApeWorX/ape-infura#101

(chain ID is cached now and wasn't before; it is already cached in all the other providers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants