-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in JsonEncoder #131
Comments
|
The exception is thrown in the
If you look at how abstract class ZLambda[E: JsonDecoder, A: JsonEncoder] extends ZIOAppDefault ... I don't have any control over the encoding process. It's called automatically after my program returns a string. |
Hi @jlandahl, Can you try to wrap the string with a case class and provide an implicit JsonEncoder for it and see what you get? BTW, what version of zio-lambda are you using? I'll try to take some time to look into this. |
This is happening with 1.0.0-RC6. I'll try what you suggest with a case class and report back. |
@jlandahl still having this issue? If not, I'm gonna close this one. |
@jlandahl This is working for us right now: object ProfileQueryLambda extends ZLambda[AwsAPIGatewayProxyRequestEvent, LambdaResponse] |
I have a lambda that I've compiled with GraalVM into a native binary. When I try to test it I get the following:
Since it's happening in JsonEncoder's string encoder, I'm guessing that the program ran, but then blew up when trying to render the return string to JSON. Here's the program in question:
Line 3 here is line 10 in the traceback.
Any tips on how to debug this?
The text was updated successfully, but these errors were encountered: