I can upload Avatars smoothly in Unity 2019, but I completely can’t upload them in 2022.
The following is a Unity error message.
ArgumentException: Illegal byte sequence encounted in the input.
Parameter name: string
System.Runtime.InteropServices.Marshal.PtrToStructure[T] (System.IntPtr ptr) (at <27124aa0e30a41659b903b822b959bc7>:0)
System.Net.NetworkInformation.Win32NetworkInterface.get_FixedInfo () (at :0)
System.Net.NetworkInformation.Win32IPGlobalProperties.get_DomainName () (at :0)
System.Net.CookieContainer…ctor () (at :0)
VRC.SDKBase.Editor.Api.VRCApi.GetCookies (System.Uri url) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:81)
VRC.SDKBase.Editor.Api.VRCApi.GetClient (System.Uri url) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:98)
VRC.SDKBase.Editor.Api.VRCApi.MakeRequestWithResponse[T,TResponse] (System.String requestUrl, System.Net.Http.HttpMethod method, System.Collections.Generic.Dictionary2[TKey,TValue] queryParams, System.Boolean forceRefresh, T body, System.String contentType, System.Byte[] contentMD5, System.Int32 contentLength, System.Int32 timeout, System.Action
1[T] onProgress, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:268)
VRC.SDKBase.Editor.Api.VRCApi.MakeRequest[T,TResponse] (System.String requestUrl, System.Net.Http.HttpMethod method, System.Collections.Generic.Dictionary2[TKey,TValue] queryParams, System.Boolean forceRefresh, T body, System.String contentType, System.Byte[] contentMD5, System.Int32 contentLength, System.Int32 timeout, System.Action
1[T] onProgress, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:340)
VRC.SDKBase.Editor.Api.VRCApi.Get[T] (System.String requestUrl, System.Collections.Generic.Dictionary2[TKey,TValue] queryParams, System.Boolean forceRefresh, System.Boolean allowRetry, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:357) VRC.SDKBase.Editor.Api.VRCApi.Get[T] (System.String requestUrl, System.Collections.Generic.Dictionary
2[TKey,TValue] queryParams, System.Boolean forceRefresh, System.Boolean allowRetry, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:365)
VRC.SDKBase.Editor.Api.VRCApi.GetAvatar (System.String id, System.Boolean forceRefresh, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:573)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder.HandleAvatarSwitch (UnityEngine.UIElements.VisualElement root) (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:1383)
UnityEngine.Debug:LogException(Exception)
VRC.SDK3A.Editor.d__86:MoveNext() (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:1421)
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(d__86&)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder:HandleAvatarSwitch(VisualElement)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder:CreateContentInfoGUI(VisualElement) (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:1327)
VRCSdkControlPanel:b__184_1() (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/ControlPanel/VRCSdkControlPanelBuilder.cs:672)
UnityEditor.RetainedMode:UpdateSchedulers()