WebSocket endpoint returns status code 1006

I am connecting to my project’s WebSocket endpoint using wscat -c <URL>. That does get connected. However, if I issue any command from the console, say newHeads, the connection terminates with error: Invalid WebSocket frame: invalid status code 1006. Any idea what’s going wrong?

Hi @sherlock, and welcome to the Infura community! I’m trying to recreate the issue you’re running into, but I’m having some trouble doing so. Can you show me the exact command you’re running in your terminal when you get the 1006 error?

Hi @Leiya_Kenney I realized that happened due to a stupid mistake I made. Thank you so much for spending time to reproduce the issue.

1 Like