cubedro / eth-netstats

Ethereum Network Stats
https://ethstats.net/
GNU General Public License v3.0
854 stars 539 forks source link

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

Open blockcloud opened 6 years ago

blockcloud commented 6 years ago

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?

zscole commented 6 years ago

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

Sent from my iPhone

On Apr 26, 2018, at 7:36 PM, blockcloud notifications@github.com 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.

madhuri03 commented 6 years ago

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

madhuri03 commented 6 years ago

From where I can generate WS secret?

mikeyb commented 6 years ago

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

madhuri03 commented 6 years ago

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

How can I resolve this ?

vingorius commented 6 years ago

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

jjhesk commented 5 years ago

can just start with this line:

env WS_SECRET=111111 node app.js

Keref commented 5 years ago

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

daxdax89 commented 5 years ago

So how is this fixed on Windows?

willtate commented 5 years ago

@Keref Has it, but should be ws_secret.json