trufflesuite / truffle-hdwallet-provider

HD Wallet-enabled Web3 provider
MIT License
399 stars 167 forks source link

Import hangs on AWS Lambda #100

Open dominik992 opened 5 years ago

dominik992 commented 5 years ago

When I try to import truffle-hdwallet-provider on AWS Lambda, the process hangs. Example:

import fs from 'fs';
import path from 'path';
import Web3 from 'web3';
console.log('contract initialization1');
import HDWalletProvider from 'truffle-hdwallet-provider';
console.log('contract initialization2');

contract initialization1 gets printed while contract initialization2 not.

Locally it works ok.

I tried changing timeout time and other parameters on AWS, but nothing solved the problem so I'm pretty sure the problem is related to the package itself.

Any suggestions?

Thanks