Expected STRING but was BEGIN_OBJECT at path $

330 views
Skip to first unread message

TestPitchIn Admin

unread,
Sep 8, 2020, 3:16:11 PM9/8/20
to Google Cloud Pub/Sub Discussions
Hi

I am new to Google Cloud and to PubSub Service.

I have implemented a simple CustomAttributeReceiver in the lines of below sample code


How ever i am getting the below exception

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at path $ at com.google.gson.Gson.fromJson(Gson.java:944) at com.google.gson.Gson.fromJson(Gson.java:1003) at com.google.cloud.functions.invoker.NewBackgroundFunctionExecutor$TypedFunctionExecutor.serviceLegacyEvent(NewBackgroundFunctionExecutor.java:257) at com.google.cloud.functions.invoker.NewBackgroundFunctionExecutor.serviceLegacyEvent(NewBackgroundFunctionExecutor.java:343) at  

Can someone throw light on what i am missing here?

Thanks

Message has been deleted

Jadid (Google Cloud Platform Support)

unread,
Oct 20, 2020, 5:05:26 PM10/20/20
to Google Cloud Pub/Sub Discussions
Hi,

Google Groups are reserved for general product discussion, StackOverflow for technical questions whereas Issue Tracker for product bugs (unexpected behaviors) and feature requests.

To get a better support you should post to the relevant forum, thus please read the Community Support article for better understanding.
Reply all
Reply to author
Forward
0 new messages