"Application error" on trying to upload avatar

I’m trying to upload a premade avatar.

However, when I try to upload it, it gets right to the end of the process, then it just suddenly fails, and spits out a generic “application error”

If I try to upload the PC version of the avatar, it works just fine, but the Quest version doesn’t seem to work. I have the right platform selected.

First error in console:

[Always] Failed to upload avatar!
UnityEngine.Debug:Log (object,UnityEngine.Object)
VRC.Core.Logger:Log (string,VRC.Core.DebugLevel,UnityEngine.Object)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder/<UploadError>d__115:MoveNext () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2266)
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:2467)
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:2444)
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)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Second error in console:

[Always] Application error
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:2267)
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:2467)
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:2444)
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)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

Third error in console:

ApiErrorException: Exception of type 'VRC.SDKBase.Editor.Api.ApiErrorException' was thrown.
VRC.SDKBase.Editor.Api.VRCApi.MakeRequestWithResponse[T,TResponse] (System.String requestUrl, System.Net.Http.HttpMethod method, System.Collections.Generic.Dictionary`2[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:288)
VRC.SDKBase.Editor.Api.VRCApi.MakeRequest[T,TResponse] (System.String requestUrl, System.Net.Http.HttpMethod method, System.Collections.Generic.Dictionary`2[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.Post[T,TResponse] (System.String requestUrl, T body, System.Collections.Generic.Dictionary`2[TKey,TValue] queryParams, System.Boolean forceRefresh, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:385)
VRC.SDKBase.Editor.Api.VRCApi.CreateNewAvatar (System.String id, VRC.SDKBase.Editor.Api.VRCAvatar data, System.String pathToBundle, System.String pathToImage, System.Action`2[T1,T2] onProgress, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/API/VRCApi.cs:696)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder.BuildAndUpload (UnityEngine.GameObject target, VRC.SDKBase.Editor.Api.VRCAvatar avatar, System.String thumbnailPath, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2407)
Rethrow as UploadException: Application error
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder.BuildAndUpload (UnityEngine.GameObject target, VRC.SDKBase.Editor.Api.VRCAvatar avatar, System.String thumbnailPath, System.Threading.CancellationToken cancellationToken) (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:2444)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder+<>c__DisplayClass104_0.<CreateBuildGUI>b__4 () (at ./Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:1898)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <eef08f56e2e042f1b3027eca477293d9>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <b41119cc6741409ea29f63c7f98de938>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <b41119cc6741409ea29f63c7f98de938>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <b41119cc6741409ea29f63c7f98de938>:0)

I believe random errors like this coming from the SDK can relate to having multiple avatar descriptor on an avatar. Can you check if this is the case, and can you try to upload the example robot avatars, see if the issue is coming from your installation/project or if its from the avatar ?