[SOLVED] Event Sync Not Working on devchain

weird - it says connected and I synced events from terminal

now it is connected, but it doesn’t seem to work as expected, for this command:
'{"method": "eth_chainId", "id" : "0"}'
it returns:

{"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"Invalid request","data":{"message":"Invalid request"}}}

what local devchain are you using?

I am using hardhat…

Okay do you have any idea how I might solve this?

I don’t have an idea now, I didn’t see this before
maybe try to restart hardhat

I have tried multiple times

if you try to run locally on your local devchain this, what you get?

curl -X POST RPC_URL_HERE  -d '{"method": "eth_chainId", "id" : "0"}'

{“jsonrpc”:“2.0”,“id”:null,“error”:{“code”:-32600,“message”:“Invalid request”,“data”:{“message”:“Invalid request”}}}

I don’t know what happens, I guess that you can not use ganache

I am using hardhat not ganache

I know, I have more experience with ganache

it looks like an issue on our side specific to hardhat, we’ll investigate more

Thank you so much!!!

So what route do you suggest I take in the meanwhile? Straight to testnet?

testnet will work, maybe we fix it today for hardhat
ganache will also work now

okay thank you please let me know when you do

as I am doing a tutorial that uses hardhat and not ganache

yes, I know, we have to fix it for hardhat

can you try to update the server (or create a new server and update it), and try again?

It’s working thanks so much

1 Like