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 'number' of null #16

Open
shussain-20 opened this issue Aug 22, 2020 · 1 comment
Open

TypeError: Cannot read property 'number' of null #16

shussain-20 opened this issue Aug 22, 2020 · 1 comment

Comments

@shussain-20
Copy link

When running my app.js file, everything will run smoothly for about 10 minutes (without making and functions run) then this error will occur and crash it:

web3-provider-engine has some error, that I saw was found in some other truffle npm packages. They were resolved, but not here =[

C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\index.js:219
number: ethUtil.toBuffer(jsonBlock.number),
^

TypeError: Cannot read property 'number' of null
at toBufferBlock (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\index.js:219:50)
at C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\index.js:60:27
at C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\index.js:136:12
at C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\index.js:199:9
at C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\async\internal\once.js:12:16
at replenish (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\async\internal\eachOfLimit.js:61:25)
at C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\async\internal\eachOfLimit.js:71:9
at eachLimit (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\async\eachLimit.js:43:36)
at C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\async\internal\doLimit.js:9:16
at end (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\index.js:176:5)
at Request._callback (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\truffle-privatekey-provider\node_modules\web3-provider-engine\subproviders\rpc.js:64:5)
at Request.self.callback (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\request\request.js:185:22)
at Request.emit (events.js:310:20)
at Request. (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\request\request.js:1154:10)
at Request.emit (events.js:310:20)
at IncomingMessage. (C:\Users\Pronto\Documents\GitHub\remove-firebase\node_modules\request\request.js:1076:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Pronto\AppData\Roaming\npm-cache_logs\2020-08-22T00_48_56_835Z-debug.log

@shussain-20
Copy link
Author

cannot read property 'number' in jsonBlock.number?

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