smartcontractkit / truffle-starter-kit

An example smart contract utilizing Chainlink
MIT License
266 stars 99 forks source link

Migration of MyContract.sol fails #117

Closed raphbaph closed 3 years ago

raphbaph commented 3 years ago

After unboxing the Truffle Starter kit and installing dependencies with npm, migration of MyContract.sol fails. .....\ChainlinkTest\node_modules\request\request.js:816 var e = new Error('ESOCKETTIMEDOUT') ^ Error: PollingBlockTracker - encountered an error while attempting to update latest block: Error: ESOCKETTIMEDOUT at ClientRequest.<anonymous> .....\ChainlinkTest\node_modules\request\request.js:816:19) at Object.onceWrapper (node:events:513:28) at ClientRequest.emit (node:events:394:28) at TLSSocket.emitRequestTimeout (node:_http_client:761:9) at Object.onceWrapper (node:events:513:28) at TLSSocket.emit (node:events:406:35) at TLSSocket.Socket._onTimeout (node:net:475:8) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) at PollingBlockTracker._performSync (C:\Users\rapha\Documents\NFT\ETH201\ChainlinkTest\node_modules\eth-block-tracker\src\polling.js:51:24) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5)

pappas999 commented 3 years ago

Thanks for rasing this @raphbaph , I'll try replicate on my machine

pappas999 commented 3 years ago

hi @raphbaph , what network are you trying to connect to? Can you try the solutions listed here and let me know if you still have the issue? https://github.com/trufflesuite/truffle/issues/3357

raphbaph commented 3 years ago

Hey @pappas999 thanks for your answer. I deploy to the Kovan testnet. I'll try to downgrade HDWalletProvider and will let you know if this helps.

PatrickAlphaC commented 3 years ago

Hi @raphbaph, i just tested this myself and it seems to be working ok. Did you run yarn and then truffle migrate --network kovan ?

Closing for now, but feel free to follow up.