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


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


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:



profile pictureAWS
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