Jump to content

Log spam


Go to solution Solved by Brady_The,

Recommended Posts

Posted

Does the following mean anything to anyone here? My log is spammed several times per second with this. And I am running out of ideas on how to resolve this.

 

To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path '*-surface', line 2, position 14.
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Vintagestory.GameContent.EntityBehaviorHarvestable.Initialize(EntityProperties properties, JsonObject typeAttributes) in VSEssentials\Entity\Behavior\BehaviorHarvestable.cs:line 309
   at Vintagestory.API.Common.Entities.Entity.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d)
   at Vintagestory.API.Common.EntityAgent.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 137
   at Vintagestory.Server.ServerMain.SpawnEntity(Entity entity, EntityProperties type) in VintagestoryLib\Server\ServerMain.cs:line 2475
   at Vintagestory.Server.ServerSystemEntitySimulation.UpdateEvery100ms(Single t1) in VintagestoryLib\Server\Systems\World\EntitySimulation.cs:line 207
24.4.2025 23:23:10 [Server Error] Exception: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Vintagestory.API.Common.BlockDropItemStack[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path '*-surface', line 2, position 14.
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Vintagestory.GameContent.EntityBehaviorHarvestable.Initialize(EntityProperties properties, JsonObject typeAttributes) in VSEssentials\Entity\Behavior\BehaviorHarvestable.cs:line 309
   at Vintagestory.API.Common.Entities.Entity.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d)
   at Vintagestory.API.Common.EntityAgent.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 137
   at Vintagestory.Server.ServerMain.SpawnEntity(Entity entity, EntityProperties type) in VintagestoryLib\Server\ServerMain.cs:line 2475
   at Vintagestory.Server.ServerSystemEntitySimulation.UpdateEvery100ms(Single t1) in VintagestoryLib\Server\Systems\World\EntitySimulation.cs:line 207
24.4.2025 23:23:10 [Server Error] Exception: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Vintagestory.API.Common.BlockDropItemStack[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.