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

Error: Provider not set or invalid at Object.InvalidProvider (/home/ben/price-bot/node_modules/web3-core-helpers/src/errors.js:38:16) at RequestManager.send (/home/ben/price-bot/node_modules/web3-core-requestmanager/src/index.js:128:32) at sendRequest (/home/ben/price-bot/node_modules/web3-core-method/src/index.js:560:42) at send (/home/ben/price-bot/node_modules/web3-core-method/src/index.js:581:13) at Object._executeMethod (/home/ben/price-bot/node_modules/web3-eth-contract/src/index.js:826:24) at checkPair (/home/ben/price-bot/index.js:36:96) at monitorPrice (/home/ben/price-bot/index.js:68:11) at Timeout._onTimeout (/home/ben/price-bot/index.js:112:48) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) #18

Open
MRC100 opened this issue Jan 28, 2021 · 2 comments

Comments

@MRC100
Copy link

MRC100 commented Jan 28, 2021

Error: Provider not set or invalid
at Object.InvalidProvider (/home/ben/price-bot/node_modules/web3-core-helpers/src/errors.js:38:16)
at RequestManager.send (/home/ben/price-bot/node_modules/web3-core-requestmanager/src/index.js:128:32)
at sendRequest (/home/ben/price-bot/node_modules/web3-core-method/src/index.js:560:42)
at send (/home/ben/price-bot/node_modules/web3-core-method/src/index.js:581:13)
at Object._executeMethod (/home/ben/price-bot/node_modules/web3-eth-contract/src/index.js:826:24)
at checkPair (/home/ben/price-bot/index.js:36:96)
at monitorPrice (/home/ben/price-bot/index.js:68:11)
at Timeout._onTimeout (/home/ben/price-bot/index.js:112:48)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)

@MRC100
Copy link
Author

MRC100 commented Jan 28, 2021

This error message happens when I enter:
npm run start

@jordanmcdougall
Copy link

I think this is similar to #14 - do you have a valid RPC URL in your .env file, also did you rename .env.example to just .env?

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

2 participants