Changing JsonConvert.DefaultSettings breaks SDK uploads
tracked
Dor․
On SDK 3.6.1, when a script changes
JsonConvert.DefaultSettings
, specifically by adding JsonSerializerSettings.TypeNameHandling = TypeNameHandling.Auto
, SDK uploads fail as a list is serialized for tags and is expected to be parsed as an array.The SDK should explicitly pass JsonSerializerSettings to json (de)serialization methods to address this.
Stack trace:
[Always] tags must be an array˸ {"$type"˸"System․Collections․Generic․List`1[[System․String‚ mscorlib]]‚ mscorlib"‚"$values"˸[""]}‚ tags must be a string˸ '[object Object]'
UnityEngine.Debug:LogError (object,UnityEngine.Object)
VRC.Core.Logger:LogError (string,VRC.Core.DebugLevel,UnityEngine.Object)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<UploadError>d__115:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2281)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<UploadError>d__115> (VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<UploadError>d__115&)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder:UploadError (object,string)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<HandleUploadError>d__165:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2481)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Exception>:Start<VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<HandleUploadError>d__165> (VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<HandleUploadError>d__165&)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder:HandleUploadError (System.Exception)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<BuildAndUpload>d__163:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2458)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<VRC.SDKBase.Editor.Api.VRCAvatar>:SetException (System.Exception)
VRC.SDKBase.Editor.Api.VRCApi/<CreateNewAvatar>d__35:MoveNext () (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:707)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<VRC.SDKBase.Editor.Api.VRCAvatar>:SetException (System.Exception)
VRC.SDKBase.Editor.Api.VRCApi/<Post>d__18`2<System.Collections.Generic.Dictionary`2<string, object>, VRC.SDKBase.Editor.Api.VRCAvatar>:MoveNext () (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:385)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<VRC.SDKBase.Editor.Api.VRCAvatar>:SetException (System.Exception)
VRC.SDKBase.Editor.Api.VRCApi/<MakeRequest>d__16`2<System.Collections.Generic.Dictionary`2<string, object>, VRC.SDKBase.Editor.Api.VRCAvatar>:MoveNext () (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:341)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.ValueTuple`2<VRC.SDKBase.Editor.Api.VRCAvatar, System.Net.Http.HttpResponseMessage>>:SetException (System.Exception)
VRC.SDKBase.Editor.Api.VRCApi/<MakeRequestWithResponse>d__15`2<System.Collections.Generic.Dictionary`2<string, object>, VRC.SDKBase.Editor.Api.VRCAvatar>:MoveNext () (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:332)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetResult ()
VRC.SDKBase.Editor.Api.VRCTools/<IncreaseSendBuffer>d__4:MoveNext () (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCTools.cs:159)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
Log In
Fax
tracked