It is impossible to migrate a contract to the rinkeby network through infura

Hello,

I have been trying to fix this somehow for several days, but it is impossible to migrate the contract. I don’t understand what I am doing wrong. My truffle configuration is as follows:

/

rinkeby: {
provider: () => new HDWalletProvider(process.env.MNEMONIC_JUAN, https://rinkeby.infura.io/v3/KEY),
network_id: 4,
commits: 2,
timeoutBlocks: 200,
skipDryRun: true,
chainId: 4,
networkCheckTimeout: 100000
},

/

The error is as follows:

/
⠇ Blocks: 48 Seconds: 724undefined
⠇ Blocks: 48 Seconds: 728undefined
⠧ Blocks: 48 Seconds: 732undefined
⠏ Blocks: 48 Seconds: 736undefined
⠧ Blocks: 49 Seconds: 740undefined
⠧ Blocks: 49 Seconds: 744undefined
⠧ Blocks: 49 Seconds: 748undefined
*** Deployment failed ***

“Migrations” – Transaction was not mined within 750 seconds, please make sure your transaction was submitted correctly. Please note that it could still be mined!.

Exit: Check for successful transactions manually by checking the transaction hashes above in Etherscan.

Error: *** Deployment Failed ***

“Migrations” – Transaction was not mined within 750 seconds, please make sure your transaction was submitted correctly. Please note that it can still be mined.
/

It does not find the next block and returns a timeout error. I don’t know what the problem is or how to fix this. I have tried to use the wss connection, but to no avail.

Can you tell me what is wrong or why this is happening to try to fix it?

Thanks
Juan.

Hello,

I still can’t deploy the contract. Does anyone know what can happen?

Thank you.