serverless / serverless-kubeless

This plugin enables support for Kubeless within the Serverless Framework.
Apache License 2.0
303 stars 80 forks source link

Python 3.6: Response always 200 #186

Open holt13 opened 5 years ago

holt13 commented 5 years ago

How can python dictate the response code returned by Kubeless?

https://github.com/serverless/serverless-kubeless/issues/180 In this issue there is a field in event.extensions to set the response code, but this key doesn't exist in the python runtime. I've tried adding the field to the event object, but the response code isn't changed. Calling the function results in 200 even though I returned 400.

Any insight will be appreciated. Thanks

andresmgot commented 5 years ago

Unfortunately, the field response is not available for the Python runtime. You can find more context here: https://github.com/kubeless/runtimes/issues/28