API can't be connected?

Hello. I’m a beginner here. I have created my API and it doesn’t work. I used the common command in my terminal like
curl --url https://mainnet.infura.io/v3/xxxxx -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
but it returns
curl: (35) schannel: failed to receive handshake, SSL/TLS connection failed

I also tried some code in node.js and it returned
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.3)

I also registered an Alchemy API,and it works fine with this. But Alchemy doesn’t seem to have enough network I planned to use, so I still prefer Infura. How could I be able solve the connection problem ?

1 Like

Hi @scarle_thusky can you please reach out via https://support.infura.io/hc/en-us/requests/new and we can take it from there?

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.