You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug is due to cjson's handling of null. It represents null as a nullptr(of type userdata, called NULL) and msgpack apparently doesn't know how to encode it.
When using
kong.request.getBody
and sending a JSON payload including a null value, likecauses an error
As a workaround I had to use the
kong.request.getRawBody()
andJSON.parse
, but it's not the ideal solution.Kong version: 2.7.1
Kong JS PDK version: 0.4.4 (I cannot upgrade to the latest one because of this: Kong/kong-js-pdk#151 )
The text was updated successfully, but these errors were encountered: