JsonSerializationException at API_SendFancyMessageError

Hi

When i ban player webhook not work and not give message on discord. Only oxide logs:

16:34 [Warning] Files: This ban already exists (76561############ - Qunir ᴴᴰ* TS3.Cs-Kurnik.pl - *.*.*.* - Testowy - Expired).
16:34 [Error] Failed to call hook 'API_SendFancyMessage' on plugin 'DiscordMessages v2.1.3' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Oxide.Plugins.DiscordMessages+EmbedBuilder' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path '', line 1, position 1.)
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00058] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00012] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <45c13f2b01574d8b82248736e42013a4>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <45c13f2b01574d8b82248736e42013a4>:0
  at Oxide.Plugins.DiscordMessages.API_SendFancyMessage (System.String webhookUrl, System.String content, System.String embedJsonString, Oxide.Core.Plugins.Plugin plugin) [0x00000] in <4414d2898c5e4b14bd1d43852cc2398b>:0
  at Oxide.Plugins.DiscordMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00bcf] in <4414d2898c5e4b14bd1d43852cc2398b>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
16:34 [Warning] Qunir ᴴᴰ* TS3.Cs-Kurnik.pl was kicked from the server (Banned)

Same here

Failed to call hook 'API_SendFancyMessage' on plugin 'DiscordMessages v2.1.3' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Oxide.Plugins.DiscordMessages+EmbedBuilder' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path '', line 1, position 1.)
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00058] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00012] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <45c13f2b01574d8b82248736e42013a4>:0 
  at Oxide.Plugins.DiscordMessages.API_SendFancyMessage (System.String webhookUrl, System.String content, System.String embedJsonString, Oxide.Core.Plugins.Plugin plugin) [0x00000] in <52f98197c5394256adb2437cb00542c5>:0 
  at Oxide.Plugins.DiscordMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00bcf] in <52f98197c5394256adb2437cb00542c5>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0​

 

I also get a NRE hook call failure when loading EBS

Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.2.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EnhancedBanSystem.PlayerDatabase_Load () [0x00054] in <b584e7317a1a4e99ba38a167d479d028>:0 
  at Oxide.Plugins.EnhancedBanSystem.OnServerInitialized () [0x0001e] in <b584e7317a1a4e99ba38a167d479d028>:0 
  at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0146c] in <b584e7317a1a4e99ba38a167d479d028>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Help i cant use webhook. Repair thanks

This has been solved in Version 5.2.6