Kong / kong-plugin-openwhisk

A kong plugin to invoke OpenWhisk action (serverless functions as service).
Apache License 2.0
9 stars 10 forks source link

Error on invoke #6

Open nicolalopatriello opened 6 years ago

nicolalopatriello commented 6 years ago

Hi, if i follow the example of "hello" script in openwisk i receive the following error in kong pod (i installed kong on kubenrates and installed by ovverideing official image of kong docker)

2018/04/27 13:34:13 [error] 48#0: *250863 lua coroutine: runtime error: /usr/local/share/lua/5.1/kong/plugins/openwhisk/handler.lua:57: attempt to call upvalue 'get_post_args' (a nil value) stack traceback: coroutine 0: /usr/local/share/lua/5.1/kong/plugins/openwhisk/handler.lua: in function 'retrieve_parameters' /usr/local/share/lua/5.1/kong/plugins/openwhisk/handler.lua:80: in function </usr/local/share/lua/5.1/kong/plugins/openwhisk/handler.lua:71> coroutine 1: [C]: in function 'resume' coroutine.wrap:21: in function <coroutine.wrap:21> /usr/local/share/lua/5.1/kong/init.lua:397: in function 'access' access_by_lua(nginx-kong.conf:87):2: in function <access_by_lua(nginx-kong.conf:87):1>, client: 10.144.187.96, server: kong, request: "POST / HTTP/1.1", host: "test.com" 2018/04/27 13:34:13 [error] 48#0: *250863 [lua] responses.lua:121: access(): /usr/local/share/lua/5.1/kong/plugins/openwhisk/handler.lua:57: attempt to call upvalue 'get_post_args' (a nil value), client: 10.144.187.96, server: kong, request: "POST / HTTP/1.1", host: "test.com" 10.144.187.96 - - [27/Apr/2018:13:34:13 +0000] "POST / HTTP/1.1" 500 54 "-" "curl/7.57.0" Any suggest? Thanks