Skip to content

JSON Enabled function returns Error when Empty value is passed #148

@michael-w-williams

Description

@michael-w-williams

After the adding JSON support for Java Fn function, if the function is passed an empty value, Fn returns:

{"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.

May be related to 392 or 1192

Mike W.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions