Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'query' of null #11

Open
ltfschoen opened this issue Jun 29, 2020 · 0 comments
Open

TypeError: Cannot read property 'query' of null #11

ltfschoen opened this issue Jun 29, 2020 · 0 comments

Comments

@ltfschoen
Copy link
Contributor

ltfschoen commented Jun 29, 2020

Error in production, we need to try to reconnect if we're disconnected

2020-06-29T23:54:58.073501+00:00 app[web.1]: 2020-06-29 23:54:58          API-WS: disconnected from wss://testnet-harbour.datahighway.com code: '1006' reason: 'Connection dropped by remote peer.'
2020-06-29T23:55:33.423180+00:00 app[web.1]: Checking DHX token account balance of requestor
2020-06-29T23:55:33.423624+00:00 app[web.1]: 2020-06-29T23:55:33.423Z app Middleware to check Harbour DHX balance of requestors DataHighway address
2020-06-29T23:55:33.431034+00:00 app[web.1]: Error checking balance of Harbour DHX with middleware:  TypeError: Cannot read property 'query' of null
2020-06-29T23:55:33.431036+00:00 app[web.1]: at getBalanceDhx (/app/helpers/contractDhx.js:49:19)
2020-06-29T23:55:33.431036+00:00 app[web.1]: at Object.checkBalanceRequestorDhx (/app/middleware/contractDhx.js:9:30)
2020-06-29T23:55:33.431037+00:00 app[web.1]: at /app/server.js:99:33
2020-06-29T23:55:33.431037+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
2020-06-29T23:55:33.431038+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/route.js:137:13)
2020-06-29T23:55:33.431038+00:00 app[web.1]: at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
2020-06-29T23:55:33.431038+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
2020-06-29T23:55:33.431039+00:00 app[web.1]: at /app/node_modules/express/lib/router/index.js:281:22
2020-06-29T23:55:33.431039+00:00 app[web.1]: at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
2020-06-29T23:55:33.431039+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/index.js:275:10)
2020-06-29T23:55:33.431040+00:00 app[web.1]: at urlencodedParser (/app/node_modules/body-parser/lib/types/urlencoded.js:91:7)
2020-06-29T23:55:33.431040+00:00 app[web.1]: at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
2020-06-29T23:55:33.431040+00:00 app[web.1]: at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)
2020-06-29T23:55:33.431041+00:00 app[web.1]: at /app/node_modules/express/lib/router/index.js:284:7
2020-06-29T23:55:33.431041+00:00 app[web.1]: at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
2020-06-29T23:55:33.431041+00:00 app[web.1]: at next (/app/node_modules/express/lib/router/index.js:275:10)
2020-06-30T00:36:09.445817+00:00 heroku[web.1]: Idling
2020-06-30T00:36:09.449067+00:00 heroku[web.1]: State changed from up to down
2020-06-30T00:36:11.412452+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2020-06-30T00:36:11.640167+00:00 heroku[web.1]: Process exited with status 1
2020-06-30T02:07:57.274584+00:00 heroku[web.1]: Unidling
2020-06-30T02:07:57.288702+00:00 heroku[web.1]: State changed from down to starting
2020-06-30T02:08:09.370865+00:00 heroku[web.1]: Starting process with command `yarn start`
2020-06-30T02:08:12.235038+00:00 app[web.1]: yarn run v1.22.4
2020-06-30T02:08:12.281847+00:00 app[web.1]: $ DEBUG=app node server.js
2020-06-30T02:08:13.602839+00:00 app[web.1]: Keccak bindings are not compiled. Pure JS implementation will be used.
2020-06-30T02:08:14.490998+00:00 app[web.1]: Listening on port 25223
2020-06-30T02:08:14.495115+00:00 app[web.1]: (node:33) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
2020-06-30T02:08:14.495117+00:00 app[web.1]: at validateString (internal/validators.js:121:11)
2020-06-30T02:08:14.495119+00:00 app[web.1]: at Url.parse (url.js:159:3)
2020-06-30T02:08:14.495119+00:00 app[web.1]: at urlParse (url.js:154:13)
2020-06-30T02:08:14.495120+00:00 app[web.1]: at new Request (/app/node_modules/node-fetch/lib/request.js:27:16)
2020-06-30T02:08:14.495120+00:00 app[web.1]: at /app/node_modules/node-fetch/index.js:51:17
2020-06-30T02:08:14.495122+00:00 app[web.1]: at new Promise (<anonymous>)
2020-06-30T02:08:14.495122+00:00 app[web.1]: at new Fetch (/app/node_modules/node-fetch/index.js:49:9)
2020-06-30T02:08:14.495122+00:00 app[web.1]: at Fetch (/app/node_modules/node-fetch/index.js:37:10)
2020-06-30T02:08:14.495123+00:00 app[web.1]: at module.exports (/app/node_modules/isomorphic-fetch/fetch-npm-node.js:8:19)
2020-06-30T02:08:14.495124+00:00 app[web.1]: at getCustomTypesDhx (/app/helpers/contractDhx.js:13:26)
2020-06-30T02:08:14.495124+00:00 app[web.1]: at Object.init (/app/helpers/contractDhx.js:40:20)
2020-06-30T02:08:14.495124+00:00 app[web.1]: at Object.<anonymous> (/app/helpers/contractDhx.js:95:9)
2020-06-30T02:08:14.495125+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:1200:30)
2020-06-30T02:08:14.495126+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
2020-06-30T02:08:14.495126+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:1049:32)
2020-06-30T02:08:14.495126+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:937:14)
2020-06-30T02:08:14.495127+00:00 app[web.1]: (Use `node --trace-warnings ...` to show where the warning was created)
2020-06-30T02:08:14.495230+00:00 app[web.1]: (node:33) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
2020-06-30T02:08:14.495328+00:00 app[web.1]: (node:33) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant