aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

HTTP resolver times out with a non 80/443 port #79

Open bboure opened 4 years ago

bboure commented 4 years ago

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.

plus- commented 4 years ago

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/:4000"

switching back to port 80 solves it.

linuxchata commented 4 years ago

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

agustinnigrelli commented 3 years ago

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

jpignata commented 2 years ago

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

mstoyanovv commented 2 years ago

Any progress on this? @jpignata

cesardddp commented 1 year ago

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

raducretu commented 1 year ago

+1

khaleeq-nicoin commented 1 year ago

+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.

nickathone commented 1 year ago

+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?