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

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 2 column 13 path $.error #2

Open
megoRU opened this issue May 5, 2023 · 0 comments

Comments

@megoRU
Copy link
Owner

megoRU commented May 5, 2023

2023-05-05T08:43:00.382Z ERROR 1 --- [   scheduling-1] o.s.s.s.TaskUtils$LoggingErrorHandler    : Unexpected error occurred in scheduled task

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 2 column 13 path $.error
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:270) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.Gson.fromJson(Gson.java:1058) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.Gson.fromJson(Gson.java:1016) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.Gson.fromJson(Gson.java:959) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.Gson.fromJson(Gson.java:927) ~[gson-2.9.1.jar!/:na]
        at org.megoru.impl.WgEasyAPIImpl.execute(WgEasyAPIImpl.java:503) ~[wg-easy-wrapper-v2.7.jar!/:na]
        at org.megoru.impl.WgEasyAPIImpl.get(WgEasyAPIImpl.java:315) ~[wg-easy-wrapper-v2.7.jar!/:na]
        at org.megoru.impl.WgEasyAPIImpl.getSession(WgEasyAPIImpl.java:285) ~[wg-easy-wrapper-v2.7.jar!/:na]
        at main.config.BotStartConfig.updateAPI(BotStartConfig.java:78) ~[classes!/:0.0.1-SNAPSHOT]
        at jdk.internal.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) ~[na:na]
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
        at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
        at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-6.0.7.jar!/:6.0.7]
        at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-6.0.7.jar!/:6.0.7]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na]
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na]
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
        at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 2 column 13 path $.error
        at com.google.gson.stream.JsonReader.nextString(JsonReader.java:835) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:394) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:382) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:161) ~[gson-2.9.1.jar!/:na]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:266) ~[gson-2.9.1.jar!/:na]
        ... 19 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant