Closed ashish2007csGit closed 3 years ago
This is likely from AWS closing the tcp connection but Kong not respecting (or realizing) this.
The solution would be to have the Kong AWS client code be more resilient in the face of transient failures like this.
Hey @ashish2007csGit,
Is this issue observed with newer versions of Kong? The plugin received lots of improvements since then.
Closing this for now, but please reopen if the issue persists in newer versions.
Summary
In Kong 1.3 we have exposed route to call Aws lambda from kong. Intermittent we observed while making the http post request is to connect aws lamda getting closed error.
IN kong error log can see ony response getting closed .
handler.lua:188 [aws-lambda] closed, client: 10.24.1.213, server: kong, request: "GET /v1/apis
below clock is throwing the error
local res, err = client:request { method = "POST", path = request.url, body = request.body, headers = request.headers }
SUMMARY_GOES_HERE getting
Steps To Reproduce
Additional Details & Logs
$ kong start --vv
)<KONG_PREFIX>/logs/error.log
)// 20191122140614 // http://cg-proxy-lb-poola-1965500442.us-east-1.elb.amazonaws.com:8000/
{ "plugins": { "enabled_in_cluster": [ "custom-aws-lambda", "rate-limiting", "correlation-id", "request-size-limiting", "kong-plugin-hmac-authentication", "custom-kong-websockets-metering", "custom-rate-limiting", "response-transformer" ], "available_on_server": { "correlation-id": true, "pre-function": true, "cors": true, "ldap-auth": true, "loggly": true, "hmac-auth": true, "custom-aws-lambda": true, "zipkin": true, "request-size-limiting": true, "azure-functions": true, "custom-rate-limiting": true, "request-transformer": true, "kong-plugin-jwt-claims-validate": true, "oauth2": true, "response-transformer": true, "ip-restriction": true, "statsd": true, "jwt": true, "proxy-cache": true, "kong-plugin-hmac-authentication": true, "basic-auth": true, "key-auth": true, "kong-plugin-hmac-auth": true, "stdout-log": true, "http-log": true, "custom-prometheus": true, "custom-kong-websockets-metering": true, "kong-plugin-template-transformer": true, "datadog": true, "tcp-log": true, "rate-limiting": true, "post-function": true, "prometheus": true, "acl": true, "kubernetes-sidecar-injector": true, "syslog": true, "file-log": true, "udp-log": true, "response-ratelimiting": true, "aws-lambda": true, "session": true, "bot-detection": true, "request-termination": true } }, "tagline": "Welcome to kong", "configuration": { "plugins": [ "bundled" ], "admin_ssl_enabled": false, "lua_ssl_verify_depth": 1, "trusted_ips": {
}, "version": "1.3.0", "node_id": "3d525eee-dd15-4c07-b4d6-ffee9f0fa66b", "lua_version": "LuaJIT 2.1.0-beta3", "prng_seeds": { "pid: 26": 183261311391, "pid: 25": 222219522822, "pid: 23": 322241642317, "pid: 24": 217137105237, "pid: 1": 711182254395 }, "timers": { "pending": 145, "running": 1 }, "hostname": "c85549d6fc3c" }