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

OpenWhisk Plugin Error using deprecated `kong.tools.responses` #11

Closed treyau21 closed 5 years ago

treyau21 commented 5 years ago

The error module 'kong.tools.responses' not found occurs on initialization

(See trace attached)

image

It appears that the relevant line may be in kong-plugin-openwhisk/kong/plugins/openwhisk/handler.lua... with the line local responses = require "kong.tools.responses". I'm not a lua developer... so, not in the best position to make a fix and submit a PR...

This Changelog shows the below statement regarding plugins (which is an indication of the issue)

The kong.tools.responses module was removed. Please use kong.response.exit from the PDK instead. You might want to use kong.log.err to log internal server errors as well.

devadvocado commented 5 years ago

@treyau21 the fix has been merged in, but have yet to push out a new release (will go out shortly)