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

Incorrect InfuraProvider URLs for BSC #4951

Open
0x-three opened this issue Feb 19, 2025 · 1 comment
Open

Incorrect InfuraProvider URLs for BSC #4951

0x-three opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
minor-bump Planned for the next minor version bump. next-patch Issues scheduled for the next arch release. on-deck This Enhancement or Bug is currently being worked on. v6 Issues regarding v6

Comments

@0x-three
Copy link

Ethers Version

6.13.5

Search Terms

provider, infura, bsc

Describe the Problem

I'm receiving timeout errors when using the Infura provider for BSC. Upon checking the code I discovered the RPC URLs used in the package are different than the ones provided by Infura. I was able to stop the errors by switching to JsonRpcProvider using the Infura provided URLs.

Source Code

return "bnbsmartchain-mainnet.infura.io";

Ethers.js URLs
bnbsmartchain-mainnet.infura.io
bnbsmartchain-testnet.infura.io

Infura URLs
bsc-mainnet.infura.io
bsc-testnet.infura.io

Code Snippet

Contract ABI

Errors

request timeout (code=TIMEOUT, version=6.13.5)

Environment

node.js (v12 or newer)

Environment (Other)

No response

@0x-three 0x-three added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Feb 19, 2025
@ricmoo
Copy link
Member

ricmoo commented Feb 19, 2025

Thanks! I’ll test and get these into the next release. :)

@ricmoo ricmoo added on-deck This Enhancement or Bug is currently being worked on. minor-bump Planned for the next minor version bump. next-patch Issues scheduled for the next arch release. and removed investigate Under investigation and may be a bug. labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-bump Planned for the next minor version bump. next-patch Issues scheduled for the next arch release. on-deck This Enhancement or Bug is currently being worked on. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants