SHUt your play!Code:4:42 PM [Info] [Rcon] New connection from xx.xx.xx.xx 4:43 PM [Error] An exception has occurred during an OnMessage event. (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Oxide.Core.RemoteConsole.RemoteMessage' 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.) 4:43 PM [Stacktrace] at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00000] in <filename unknown>: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) [0x00000] in <filename unknown>: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) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
I tried everything and nothing
I use THIS. Anyone can help me ?
Game: Hurtworld
Solved An exception has occurred during an OnMessage event
Discussion in 'Hurtworld Discussion' started by MonkeY12, Jun 24, 2017.
-
Wulf Community Admin
Try removing the [ and ] from around it.
-
Code:
5:41 PM [Error] [Rcon] Failed to parse message, incorrect format 5:41 PM [Error] An exception has occurred during an OnMessage event. (NullReferenceException: Object reference not set to an instance of an object) 5:41 PM [Stacktrace] at Oxide.Core.RemoteConsole.RemoteConsole.OnMessage (WebSocketSharp.MessageEventArgs e, WebSocketSharp.Net.WebSockets.WebSocketContext connection) [0x00000] in <filename unknown>:0 at Oxide.Core.RemoteConsole.RemoteConsole+RconListener.OnMessage (WebSocketSharp.MessageEventArgs e) [0x00000] in <filename unknown>:0 at WebSocketSharp.Server.WebSocketBehavior.onMessage (System.Object sender, WebSocketSharp.MessageEventArgs e) [0x00000] in <filename unknown>:0 at WebSocketSharp.Ext.Emit[MessageEventArgs] (System.EventHandler`1 eventHandler, System.Object sender, WebSocketSharp.MessageEventArgs e) [0x00000] in <filename unknown>:0 at WebSocketSharp.WebSocket.messages (WebSocketSharp.MessageEventArgs e) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
Ah, make sure you are using " and not the other symbols you are using in the editor.
-
Solved.
I change websocket client
Thanks for help -
Wulf Community Admin