com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

0

I am getting this error in my lambda function when i am calling my lambda without any parameter.

I am using java 11 as a runtime

asked 2 months ago333 views
1 Answer
0

Hi,

This kind of error is not related to AWS Lambda but to the way that you use Google's Gson when you parse input data.

Have a look at this video to debug your code and solve: https://www.youtube.com/watch?v=k-F4Z7U7fpM

Best,

Didier

profile pictureAWS
EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions