When I try to connect to the filecoin node using the websocket URL, I always get a bad handshake error.
Hi @rajdeep, can you please give some information on how you are connecting and what URL you are using?
For example one easy way to test is using the wscat
utiltity: https://www.npmjs.com/package/wscat
npx wscat -c wss://<project -id>:@filecoin.infura.io
I have the same error~ It happens on the browser.
Hi @lastingman, can you provide some more detail on how you are using the filecoin endpoint within a browser?
@tim.myers Thanks, it’s working with wscat utility. I tried it from a golang app which led to the error.
@rajdeep I just took a look at https://github.com/figment-networks/filecoin-indexer. Unfortunately some changes would be needed for it to work with the Infura Filecoin API. The root of the problem is this issue I just opened here: https://github.com/filecoin-project/go-jsonrpc/issues/42