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
{{ message }}
Repository navigation
JSON Enabled function returns Error when Empty value is passed #148
{"message":"container exit code 2"}
Fn: Error calling function: status 502
The function does work with JSON data. If you pass:
{"name":"Bob"}
or even
{"name":""}
the function works fine. Tried modifying the function to test for null and isEmpty. Nothing like that worked. I'm guessing the function is throwing an uncaught exception.
The error is pretty clear that an attempt to convert null to an an object failed. Null input should result in a null object passed to the function handler.
{ "message":"Unhandled internal error in FDK", "detail":"An exception was thrown during Input Coercion: Failed to coerce event to user function parameter type class com.example.fn.HelloFunction$Input"}
Activity
shaunsmith commentedon Oct 17, 2018
The error is pretty clear that an attempt to convert null to an an object failed. Null input should result in a null object passed to the function handler.
{ "message":"Unhandled internal error in FDK", "detail":"An exception was thrown during Input Coercion: Failed to coerce event to user function parameter type class com.example.fn.HelloFunction$Input"}shaunsmith commentedon Dec 12, 2018
@rikgibson can you take a look at this? I'd rather we fixed this bug than have to add warning text to the Java tutorial (fnproject/tutorials#149).
CC007 commentedon Jul 17, 2020
What is the status on this issue?