'Issue connecting my lambda function to Amazon managed blockchain

I am failing with a DNS 14 message when trying to call a lambda function to invoke chaincode on my Amazon Managed Hyperledger Blockchain.

ERROR   Failed proposal response. Status code: undefined. Message: 14 UNAVAILABLE: DNS resolution failed. Stack: Error: 14 UNAVAILABLE: DNS resolution failed

at Object.exports.createStatusError (/opt/nodejs/node_modules/grpc/src/common.js:91:15) at Object.onReceiveStatus (/opt/nodejs/node_modules/grpc/src/client_interceptors.js:1209:28) at InterceptingListener._callNext (/opt/nodejs/node_modules/grpc/src/client_interceptors.js:568:42)

I believe that it is due to a grpc link used to access the peer node endpoint.

I've tried logging all of the request fields, but it is difficult to figure out which configuration is missing.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source