-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Issue with invoking Lambda using plugin. #2991
Comments
Hello, please provide the debug log of curl, (the options are |
Here is the output. == Info: Trying 10.8.138.51... |
If I use postman it does not even work. |
|
Thanks for testing this so thoroughly. By your own results it seems to be a problem with curl 7.53.0 (fixed in 7.54.0). If you need it to work in environments where 7.54.0 is not available then my suggestion would be adding the http1.1 option or changing to a different client. |
Hello Kikito How abt clients like postman or standard java http spring libraries. They also show similar problem. Thanks |
We are exposing this API to different clients, and most of them do not work. Browser-based hang because the read does not terminate, Java Apache HttpClient clients timeout most likely due to the same problem (unless the HTTP 1.0 protocol is forced). |
Workaround is to pass in HTTP 1.1 protocol using request transformer. Should still be fixed. |
@aaronhmiller I'm also have this issue using curl and safari (chrome seems ok). Can you provide an example of what I need to do in the request transformer? Edit: So using curl verbosely I get the following:
So it looks like the Connection header is getting converted back to http2, which isn't allowed. I can use the response transformer to remove this, but I unfortunately it still doesn't work correctly.
|
@kikito I am encountering this with my first simple "Hello World" attempt. Hangs in Chrome and won't even load in Safari - definitely not a
|
Hello
I have a kong setup in aws with ELB. (https).
I tried to use the lambda plugin.
when I change the loadbalancer to http i do not see any issue. But with https I get
"curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)"
Can I get some help or pointers on how to fix this. i tried using the http port from elb to kong instance as well. It does not work
How can i have https enabled
My Setup
3 kong ec2 boxes 0.11.0
One Application loadbalancer with https listner sending traffic to port 8443 in each box.
I also tried sending traffic to 8000(http).
But i get the same error with curl. i tried to call from postman and request just timesout.
with firefox or chrome, i see the response but the request does not get disconnected.
if i add --http1.1 option to curl it works.
Thanks
The text was updated successfully, but these errors were encountered: