INFURA / infura

Official Public Repository for INFURA
https://infura.io
381 stars 62 forks source link

Timeout when trying to connect to ropsten-infura #208

Closed Skarovski1 closed 3 years ago

Skarovski1 commented 3 years ago

I've been trying to connect to the ropsten-infura network but I keep getting timeout errors. I've tried a longer timeout but it hasn't helped.

This is what I get when I run the following command:

truffle deploy --network ropsten-infura --reset

C:\Users\lukaman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\provider\index.js:56 throw new Error(errorMessage); ^ Error: There was a timeout while attempting to connect to the network. Check to see that your provider is valid. If you have a slow internet connection, try configuring a longer timeout in your Truffle config. Use the networks[networkName].networkCheckTimeout property to do this. at Timeout._onTimeout (C:\Users\lukaman\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\provider\index.js:56:1) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)

This is the truffle-config file:

`require('dotenv').config(); const HDWalletProvider = require("truffle-hdwallet-provider");

module.exports = { networks: { development: { host: "127.0.0.1", port: 7545, network_id: "*" }, "ropsten-infura": { //networkCheckTimeout: 100000, provider: () => new HDWalletProvider(process.env.TEST_MNEMONIC, "https://ropsten.infura.io/"+process.env.INFURA_KEY, 0), network_id: 3, gas: 4700000, gasPrice: 100000000000 } } };`

Npm version 6.14.4 Node version 12.16.3