I currently have a function deployed on AWS Lambda that at some point connects to Infura.
The function call works perfectly when I run it locally. But after I deploy it and call it from AWS, I get the error CONNECTION ERROR: Couldn’t connect to node https://rinkeby.infura.io/v3/xxxxxx. Been searching online for help, but couldn’t find any.
Any thoughts would be much appreciated, thanks!
Do other external requests from your lambda function succeed? Check the network ACLs for your lambda function that error does not indicate an issue on the server side but on the client’s ability to complete the network request.
Think I found the issue. Wasn’t related to permissions, but one of the calls to the client, more specifically
eth.getTransactionCount, was failing miserably. Wonder why it returns an error like the one above?