Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot test-invoke from API Gateway console #3

Closed
JackKelly-Bellroy opened this issue May 26, 2021 · 1 comment · Fixed by #6
Closed

Cannot test-invoke from API Gateway console #3

JackKelly-Bellroy opened this issue May 26, 2021 · 1 comment · Fixed by #6

Comments

@JackKelly-Bellroy
Copy link
Member

When you test-invoke an endpoint (from the API Gateway console), AWS doesn't send a real IP address, which causes the following error:

Wed May 26 01:39:03 UTC 2021 : Endpoint response body before transformations: {"errorType":"User","stackTrace":[],"errorMessage":"Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_NUMERICHOST], addrFamily = AF_INET, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just \"test-invoke-source-ip\", service name: Just \"443\"): does not exist (Name or service not known)"}

This breaks the getAddrInfo call. If they're going to send a dummy IP, we should emit a wai Request with a dummy IP.

@Unisay
Copy link

Unisay commented May 31, 2021

I've seen this one when I simulated a gateway proxy request - I manufactured a dummy one full of mempty values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants