Please help with 'Invalid project id'

i added my id and made request: but response is invalid project id: why?

curl -X POST -H "Content-Type: application/json" --data
'{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' 
https://mainnet.infura.io/v3/eee6e4d410c247dea2a8f21c3f8817ae

my project has exactly this id! https://infura.io/dashboard/ethereum/eee6e4d410c247dea2a8f21c3f8817ae/settings

Hi @95pz_aru - welcome to the Infura community! When I try to replicate the error with your project id above, I get an error message that user project is inactive.

I would suggest creating a new project with a new project ID, and then following the curl example from our docs - try putting the URL just after curl.

Let us know if this helps!

1 Like