Snipa22 / nodejs-pool

Other
480 stars 423 forks source link

api/network/stats returns 'false' #202

Open rest2t opened 6 years ago

rest2t commented 6 years ago

api/network/stats returns 'false', on electroneum daemon. Please help me :/

ArqTras commented 6 years ago

do U configure caddy ?

rest2t commented 6 years ago

I only run deploy.sh. I have changed daememon etc. for etn.

ArqTras commented 6 years ago

write to me support@ar-net.info mayby I can help

JPaulMora commented 6 years ago

I got this traceback:

TypeError: Cannot create property 'fee' on boolean 'false'
   at /home/pooldaemon/nodejs-pool/lib/api.js:253:28
   at Layer.handle [as handle_request] (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/layer.js:95:5)
   at next (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/route.js:131:13)
   at Route.dispatch (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/route.js:112:3)
   at Layer.handle [as handle_request] (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/layer.js:95:5)
   at /home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:277:22
   at param (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:349:14)
   at param (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:365:14)
   at Function.process_params (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:410:3)
   at next (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:271:10)
   at jsonParser (/home/pooldaemon/nodejs-pool/node_modules/body-parser/lib/types/json.js:109:7)
   at Layer.handle [as handle_request] (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/layer.js:95:5)
   at trim_prefix (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:312:13)
   at /home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:280:7
   at Function.process_params (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:330:12)
   at next (/home/pooldaemon/nodejs-pool/node_modules/express/lib/router/index.js:271:10)
ArqTras commented 6 years ago

fee wallet address (wallet not ip) in sql

JPaulMora commented 6 years ago

It seems the database class/function at lib/local_comms isn't being initialized correctly. When api calls database.getCache it returns false. Since the api creates multiple threads/ calls the code multiple times, it sometimes works and gives a correct response and the other times creates the error above.