Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.86 KB

File metadata and controls

48 lines (34 loc) · 1.86 KB

BUG - Stop MainBot From Constantly Crashing

The mainbot has an issue that eventually causes it to stop properly responding to the discord commands

Dependencies

None

Acceptance Criteria

The bot is able to handle thousands of requests and never needs to be restarted The bot is able to run for months and never needs to be restarted

Expected Behavior

Steps that QA will execute to reproduce the Bug

Actual Behavior

Steps that QA will execute to validate the Bug

Assumptions & Risk

Any assumptions that are made and their corresponding risks

Dev Notes

Error message:

... 31 common frames omitted
Exception in thread "Timer-0" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected ':' at line 1 column 876457
        at com.google.gson.Gson.fromJson(Gson.java:818)
        at com.google.gson.Gson.fromJson(Gson.java:741)
        at net.foldingcoin.fldcbot.util.fldc.FLDCStats.reload(FLDCStats.java:91)
        at net.darkhax.botbase.lib.ScheduledTimer$RunnableTask.run(ScheduledTimer.java:72)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
Caused by: com.google.gson.stream.MalformedJsonException: Expected ':' at line 1 column 876457
        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:519)
        at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
        at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
        at com.google.gson.Gson.fromJson(Gson.java:803)
        ... 5 more