I'm trying to integrate web3 (using truffle) in a cloud functions module and I keep getting this error:
Error: Invalid JSON RPC response: ""
Here is part of the implementation:
const db = admin.database();
const provider = new HDWalletProvider(mnemonic, infura link);
const web3 = new Web3(provider);
As Far as I understand, the error indicates that truffle library is unable to establish a connection to the ethereum network. I wonder if this has something to do with deploying this code to firebase.
Thanks in advance.