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

Infura Provider error on requests with credentials #3897

Closed
buenaondalab opened this issue Mar 14, 2023 · 3 comments
Closed

Infura Provider error on requests with credentials #3897

buenaondalab opened this issue Mar 14, 2023 · 3 comments
Assignees
Labels
bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6

Comments

@buenaondalab
Copy link

Ethers Version

6.1

Search Terms

providers, network

Describe the Problem

Using Infura provider with my own credentials I have this error whenever I make a request:
insecure authorized connections unsupported (operation="request", code=UNSUPPORTED_OPERATION, version=6.1.0)

Code Snippet

provider = new InfuraProvider(
      <NETWORK>,
      <PROJECT_ID>,
      <SECRET>,
    );
provider.getBalance(<ADDRESS>);

Contract ABI

No response

Errors

insecure authorized connections unsupported (operation="request", code=UNSUPPORTED_OPERATION, version=6.1.0)

Environment

React Native/Expo/JavaScriptCore

Environment (Other)

No response

@buenaondalab buenaondalab added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Mar 14, 2023
@ricmoo ricmoo added on-deck This Enhancement or Bug is currently being worked on. bug Verified to be an issue. and removed investigate Under investigation and may be a bug. labels Mar 20, 2023
@ricmoo
Copy link
Member

ricmoo commented Mar 24, 2023

The bug was introduced when switching from if (blah) { throw } to assert. I've fixed the issue locally and it should be published shortly.

@ricmoo
Copy link
Member

ricmoo commented Mar 24, 2023

This is fixed in v6.2.2. Let me know if you still have any problems.

Thanks! :)

@ricmoo ricmoo closed this as completed Mar 24, 2023
@ricmoo ricmoo added fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. labels Mar 24, 2023
@buenaondalab
Copy link
Author

Thanks for the fix. It's working fine.

Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified to be an issue. fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants