Skip to content
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

InlineResponse2014 persistence class error, please pay attention to the returned value of the notificationScope field. #176

Open
smll8402 opened this issue Jan 17, 2025 · 0 comments

Comments

@smll8402
Copy link

        CreateNewWebhooksApi apiInstance = new CreateNewWebhooksApi(apiClient);
        apiInstance.createWebhookSubscription(requestObj);

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 760 path $.notificationScope
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.Gson.fromJson(Gson.java:963)
at com.google.gson.Gson.fromJson(Gson.java:928)
at com.google.gson.Gson.fromJson(Gson.java:877)
at Invokers.JSON.deserialize(JSON.java:103)
at Invokers.ApiClient.deserialize(ApiClient.java:1059)
at Invokers.ApiClient.handleResponse(ApiClient.java:1283)
at Invokers.ApiClient.execute(ApiClient.java:1203)
at Api.CreateNewWebhooksApi.createWebhookSubscriptionWithHttpInfo(CreateNewWebhooksApi.java:168)
at Api.CreateNewWebhooksApi.createWebhookSubscription(CreateNewWebhooksApi.java:153)
at com.pay.cy.CreateTokenManagementWebhook.run(CreateTokenManagementWebhook.java:83)
at com.pay.cy.CreateTokenManagementWebhook.main(CreateTokenManagementWebhook.java:34)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 760 path $.notificationScope
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:384)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant