eth-netstats icon indicating copy to clipboard operation
eth-netstats copied to clipboard

2018-04-27 02:32:45.844 [API] WS_SECRET NOT SET!!!

Open blockcloud opened this issue 6 years ago • 10 comments

When I start the project, it shows this and seems stopped. And I got a connection error when access localhost:3000. What is the problem? Or how to find the error?

blockcloud avatar Apr 27 '18 02:04 blockcloud

You need to run WP_SECRET=[your secret] npm start

Sent from my iPhone

On Apr 26, 2018, at 7:36 PM, blockcloud [email protected] wrote:

When I start the project, it shows this and seems stopped. And I got a connection error when access localhost:3000. What is the problem? Or how to find the error?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

zscole avatar Apr 27 '18 03:04 zscole

giving error screenshot from 2018-06-14 18-14-01

madhuri03 avatar Jun 14 '18 12:06 madhuri03

From where I can generate WS secret?

madhuri03 avatar Jun 14 '18 12:06 madhuri03

read the error, has nothing to do with your WS_SECRET smh

mikeyb avatar Jun 14 '18 15:06 mikeyb

error on console screenshot from 2018-06-15 18-50-49

How can I resolve this ?

madhuri03 avatar Jun 15 '18 13:06 madhuri03

@madhuri03 Add your geth script "--ethstats Node1:Hello@localhost:3000". Node1: node name Hello: SECERT localhost:3000: ethstats address

vingorius avatar Jul 11 '18 00:07 vingorius

can just start with this line:

env WS_SECRET=111111 node app.js

jjhesk avatar Oct 14 '18 17:10 jjhesk

Another way is to properly set the secret, by adding ws-secret.json in the eth-netstats directory, with { "ws_secret": "my_lil_secret" }

Keref avatar Oct 21 '18 08:10 Keref

So how is this fixed on Windows?

daxdax89 avatar Nov 21 '18 16:11 daxdax89

@Keref Has it, but should be ws_secret.json

willtate avatar Jan 09 '19 18:01 willtate