Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

ERROR POST https://mainnet.infura.io/v3/ 401 when using BSC #21

Open
piatpawel opened this issue Nov 16, 2021 · 4 comments
Open

ERROR POST https://mainnet.infura.io/v3/ 401 when using BSC #21

piatpawel opened this issue Nov 16, 2021 · 4 comments

Comments

@piatpawel
Copy link

piatpawel commented Nov 16, 2021

hello,
I have the same problem to configure BSC network as described on github using vanilla JavaScript:
reown-com/appkit#295

My js code:

const providerOptions = {
  walletconnect: {
    package: WalletConnectProvider,
    options: {
      rpc: {
        56: 'https://bsc-dataseed1.binance.org/'
      },
      chainId: 56
    }
  }
}

  web3Modal = new Web3Modal({
    cacheProvider: false, // optional
    providerOptions, // required
    disableInjectedProvider: false, // optional. For MetaMask / Brave / Opera.
  });

ERROR
POST https://mainnet.infura.io/v3/ 401
POST https://mainnet.infura.io/v3/ 401

scripts declaration in html:

<script type="text/javascript" src="https://unpkg.com/web3@latest/dist/web3.min.js%22%3E</script>
<script type="text/javascript" src="https://unpkg.com/web3modal%22%3E</script>
<script type="text/javascript" src="https://unpkg.com/evm-chains%22%3E</script>
<script type="text/javascript" src="https://unpkg.com/@walletconnect/web3-provider%22%3E</script>
<script type="text/javascript" src="./example.js"></script>
@DeastDan
Copy link

Same problem here!

@Loque18
Copy link

Loque18 commented Apr 21, 2022

same

@jakobj13
Copy link

Same problem, does anyone have a solution!

@hcheng826
Copy link

same here. A refresh of the page fix this. but not sure why.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants