Blockchain crash receiving *Pong frame*
See original GitHub issueBug Report
Blockchain crash, cannot use its websocket
Summary
Run embark blockchain
and embark run dev
on 2 separate terminals, along with my app backend(python) & frontend(js), and they both use web3 to connect with the blockchain. And the blockchain just crash receiving pong frame
Current behavior
How to reproduce
Expected behavior
No crashing
If you encounter an error, please create a logfile using the following command and post the output here
$ embark run --nodashboard --logfile log.txt --loglevel trace
[2019-05-03 18:15:30:179] [info]: Previous token has now been used.
[2019-05-03 18:15:30:183] [info]: Enter the Cockpit with the following url: [4mhttp://localhost:55555?token=275a8a0b-0d6b-4b33-9ea8-de72bbfff8cd[24m
[2019-05-03 18:15:45:393] [error]: Error: Pong frame received
at WsParser.getHeader (/Users/vumacbook/Documents/employment/tomochain/relayerms/node_modules/simples/lib/parsers/ws.js:209:23)
at WsParser._write (/Users/vumacbook/Documents/employment/tomochain/relayerms/node_modules/simples/lib/parsers/ws.js:51:8)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)
at WsParser.Writable.write (_stream_writable.js:294:11)
at Duplex.write [as _write] (/Users/vumacbook/Documents/employment/tomochain/relayerms/node_modules/embark/dist/lib/modules/blockchain_process/proxy.js:233:20)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)
at Duplex.Writable.write (_stream_writable.js:294:11)
at Socket.ondata (_stream_readable.js:666:20)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Please provide additional information about your system
OS: MacOS Embark Version: 4.0.2 Node Version: 10.13 NPM Version:6.7
Sometimes issues are related to Embark’s installation. Can you provide information on how Embark was installed?
npm install -D embark
npm i -G embark
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top Results From Across the Web
Blockchain crash receiving *Pong frame* · Issue #1579 · embarklabs ...
Bug Report Blockchain crash, cannot use its websocket Summary Run embark blockchain and embark run dev on 2 separate terminals, along with my...
Read more >python-websockets(1) - Arch manual pages
Sending data right after receiving data is necessary because websockets responds to ping frames, close frames, and incorrect inputs automatically. Expect TCP ...
Read more >2022 was the year crypto came crashing down to Earth - NPR
Crypto came crashing down in 2022 after starting out at record highs For the world of crypto, 2022 started with exuberance and ended...
Read more >websockets Documentation
it means that the TCP connection was lost. As a consequence, the WebSocket connection was closed without receiving a close frame, which is...
Read more >QUIC: A UDP-Based Multiplexed and Secure Transport - IETF
An endpoint MUST treat receipt of duplicate transport parameters as a ... The CRYPTO frame offers the cryptographic protocol an in-order stream of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe your setup has a problem with using the blockchain proxy. You can disable it in
config/blockhain.js
but puttingproxy: false
.The proxy is not vital for Embark to work. It’s mostly there for things like showing details on transactions and passing additional accounts to the Dapp.
Great!
As for the documentation, the proxy is already explained a bit here: https://embark.status.im/docs/blockchain_configuration.html#Parameter-descriptions and you’re the only person to ever have had that issue, so I’d leave the docs like that for now. If other users have the same problem, hopefully they find this GH issue and see the answer.