Closed michaeljohnbennett closed 6 years ago
moving to truffle 4.1.11 fixes the issue
I have the exact same problem. Truffle v5.0.3
I have the same problem with Truffle 5.1.13. I am on Solidity 0.4.26 but I have the ">" pragma and my Node is 10.19.0 with Web3.js 1.2.1. Is there no solution to this problem?
After looking through a number of posts and issues I have to post a question here.
I can manage to deploy my contracts, finally after a lot of config but if the provider is instantiated it will time out the truffle migrate or truffle compile calls for some reason.
It seems isolated to infura calls within HDWalletProvider.
truffle.js:
so when it runs with
truffle migrate --network ropsten
I can see it get through to ropsten but it will just hang on command line afterwards.Similarly before I wrapped the call in a function to lazily instantiate it even
truffle compile
would hang at the end.I think there is a timeout not kicking in or your not handling a promise somewhere in the case of infura API properly. It's very hard to ascertain what exactly as I can't really debug it or see any meaninful logs from a hanging program. It just sits there until you ctrl+c.
Is there anything I can do to debug this further?
Packages of interest: