GainsNetwork-org / nft-bot-v3

Bot that executes limit orders of gTrade v6, the decentralized leveraged trading platform on Polygon.
46 stars 39 forks source link

Bot failing to start #1

Closed rasodu closed 2 years ago

rasodu commented 2 years ago

I am getting below error:

eb 14 19:40:37 gainsfarmnftbot bash[2316815]: Welcome to the gTrade NFT bot!
Feb 14 19:40:37 gainsfarmnftbot bash[2316815]: Listening on port 4002
Feb 14 19:40:37 gainsfarmnftbot bash[2316815]: WSS wss://matic-mainnet-full-ws.bwarelabs.com error
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: Connected to WSS wss://rpc-mainnet.matic.quiknode.pro.
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: Switched to WSS wss://rpc-mainnet.matic.quiknode.pro
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: wss://matic-mainnet-full-ws.bwarelabs.com closed: trying to reconnect...
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: WSS wss://matic-mainnet-full-ws.bwarelabs.com error
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: /home/vagrant/myprojects/nft-bot-v3/node_modules/web3-core-helpers/lib/errors.js:28
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:         var err = new Error('Returned error: ' + message);
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:                   ^
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: Error: Returned error: execution reverted
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at Object.ErrorResponse (/home/vagrant/myprojects/nft-bot-v3/node_modules/web3-core-helpers/lib/err>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at Object.callback (/home/vagrant/myprojects/nft-bot-v3/node_modules/web3-core-requestmanager/lib/i>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at /home/vagrant/myprojects/nft-bot-v3/node_modules/web3-providers-ws/lib/index.js:114:45
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at Array.forEach (<anonymous>)
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at WebsocketProvider._onMessage (/home/vagrant/myprojects/nft-bot-v3/node_modules/web3-providers-ws>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at W3CWebSocket._dispatchEvent [as dispatchEvent] (/home/vagrant/myprojects/nft-bot-v3/node_modules>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at W3CWebSocket.onMessage (/home/vagrant/myprojects/nft-bot-v3/node_modules/websocket/lib/W3CWebSoc>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at WebSocketConnection.<anonymous> (/home/vagrant/myprojects/nft-bot-v3/node_modules/websocket/lib/>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at WebSocketConnection.emit (node:events:390:28)
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at WebSocketConnection.processFrame (/home/vagrant/myprojects/nft-bot-v3/node_modules/websocket/lib>
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at /home/vagrant/myprojects/nft-bot-v3/node_modules/websocket/lib/WebSocketConnection.js:323:40
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:     at processTicksAndRejections (node:internal/process/task_queues:78:11) {
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]:   data: null
Feb 14 19:40:38 gainsfarmnftbot bash[2316815]: }
Dopaminergics commented 2 years ago

Please try using a new RPC. https://polygon-rpc.com/ https://rpc-mainnet.matic.network https://matic-mainnet.chainstacklabs.com https://rpc-mainnet.maticvigil.com https://rpc-mainnet.matic.quiknode.pro https://matic-mainnet-full-rpc.bwarelabs.com

Or sign up for a personal RPC endpoint somewhere like chainstack =)

GainsNetwork commented 2 years ago

The v3 bot is meant to be used once v6 is live, which will be in about 3.5 hours from now, before then the v2 bot has to be used.