aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

HTTP resolver times out with a non 80/443 port

Open bboure opened this issue 5 years ago • 9 comments

I have an http endpoint that listens on port 4000 and an AppSync HTTP Datasource that points to it.

endpoint: http://ec2-ww-xx-yy-zz.eu-west-1.compute.amazonaws.com:4000

When executing a GraphQl request, the resolver times out when executing the HTTP request.

From cloudwatch:

com.amazonaws.deepdish.http.HttpRequestException: io.netty.channel.ConnectTimeoutException: connection timed out: ec2-xx-yy-zzz-ww.eu-west-1.compute.amazonaws.com/xx.yy.zz.ww:4000",

Changing port to 80 works as expected.

bboure avatar Jan 03 '20 21:01 bboure

I found the same thing.

the timeout URL was a concatenation of the hostname and a resolved IP:

"com.amazonaws.deepdish.http.HttpRequestException: io.netty.channel.ConnectTimeoutException: connection timed out: foo.bar.eu-west-3.elb.amazonaws.com/<THE_RESOLVED_IP_HERE>:4000"

switching back to port 80 solves it.

plus- avatar May 27 '20 15:05 plus-

The same thing - HTTP endpoint datasource that is hosted port 5000 cannot be used by AppSync

linuxchata avatar Aug 07 '20 12:08 linuxchata

Has this issue any solution or workaround? i'm running in the same exact problem

agustinnigrelli avatar Jun 09 '21 16:06 agustinnigrelli

We will evaluate this change in a coming release. Please 👍 if this would help you.

jpignata avatar Nov 24 '21 13:11 jpignata

Any progress on this? @jpignata

mstoyanovv avatar May 12 '22 16:05 mstoyanovv

any news? still can't use a custom port?

cesardddp avatar Oct 31 '22 13:10 cesardddp

+1

raducretu avatar Mar 07 '23 18:03 raducretu

+1 why there are alot of limitations? you people also removed DATA API from serverless v2, and on HTTP resolvers port is now the limitation.

khaleeq-nicoin avatar Jul 26 '23 09:07 khaleeq-nicoin

+1 Given the documentation says this is possible, seems like quite a bad oversight. Very much needing to use non-80/443 ports for our platform setup.

And why has it taken over 3 years to be addressed?

nickathone avatar Aug 03 '23 01:08 nickathone