ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.4k stars 910 forks source link

Can't connect new remix using remixd (Error: Specified protocol was not requested by the client.) #639

Open madjarevicn opened 3 years ago

madjarevicn commented 3 years ago

After running command on my machine and getting successful connection:

[WARN] You may now only use IDE at https://remix.ethereum.org to connect to that instance
[WARN] Any application that runs on your computer can potentially read from and write to all files in the directory.
[WARN] Symbolinc links are not forwarded to Remix IDE

setup notifications for /Users/nikolamadjarevic/Desktop/2key/contracts/contracts
Wed Oct 21 2020 10:11:19 GMT+0200 (Central European Summer Time) Remixd is listening on 127.0.0.1:65520

And when I try in new remix to connect with it using remixd I'm getting following error:

Error: Specified protocol was not requested by the client.
    at WebSocketRequest.accept (/Users/nikolamadjarevic/.nvm/versions/node/v10.19.0/lib/node_modules/remixd/node_modules/websocket/lib/WebSocketRequest.js:289:19)
    at WebSocketServer.wsServer.on (/Users/nikolamadjarevic/.nvm/versions/node/v10.19.0/lib/node_modules/remixd/src/websocket.js:43:33)
    at WebSocketServer.emit (events.js:198:13)
    at WebSocketServer.handleUpgrade (/Users/nikolamadjarevic/.nvm/versions/node/v10.19.0/lib/node_modules/remixd/node_modules/websocket/lib/WebSocketServer.js:217:14)
    at Server.emit (events.js:198:13)
    at onParserExecuteCommon (_http_server.js:567:14)
    at onParserExecute (_http_server.js:513:3)

The old remix works properly.

Pencil-Yao commented 3 years ago

I also meet this problem

madjarevicn commented 3 years ago

Anyone to check this?

satwikkansal commented 3 years ago

I'm facing the same issue