FabioZumbi12 / SEDiscordBridge

A Torch plugin to connect the SE server to Discord
MIT License
13 stars 11 forks source link

Errors dump to bridge chat instead of logs #48

Closed kontu closed 3 years ago

kontu commented 4 years ago

Whenever the bridge errors (we see the below ones usually when Discord is congested/takes too long to respond, but that's not the point of the ticket) -- it dumps it to game chat.

Can we please get this to just go to logs instead of spamming a 13 line stacktrace to in game chat and the discord channel?

[11:56 AM] BOT Lambda Draconis: System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d39.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at SEDiscordBridge.DiscordBridge.<>cDisplayClass26_0.b0() ---> (Inner Exception #0) Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at DSharpPlus.Net.DiscordApiClient.d39.MoveNext()<--- [11:56 AM] BOT Delta Draconis: Ebass: Discord dead [11:56 AM] BOT Lambda Draconis: electrobombs: its that covid connection [11:56 AM] BOT Delta Draconis: System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at DSharpPlus.Net.DiscordApiClient.d39.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at SEDiscordBridge.DiscordBridge.<>cDisplayClass26_0.<SendChatMessage>b0() ---> (Inner Exception #0) Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at DSharpPlus.Net.DiscordApiClient.<CreateMessageAsync>d39.MoveNext()<---

FabioZumbi12 commented 4 years ago

Should be on latest pre=release: https://github.com/FabioZumbi12/SEDiscordBridge/releases

FabioZumbi12 commented 3 years ago

SEDB is now maintained by Bishbash777 on https://github.com/Bishbash777/SEDB-RELOADED