readyplayerme / rpm-unity-sdk-core

This Module contains all the core functionality required for using Ready Player Me avatars in Unity, including avatar loading and creation
MIT License
97 stars 33 forks source link

Bad JSON escape sequence: \%. Path 'data.metadata', line 1, position 794. #312

Open Uralstech opened 4 months ago

Uralstech commented 4 months ago

Describe the bug When clicking the next button after creating the avatar in the WebView, a bad JSON error occurs and the WebView does not give the app the model URL and can't continue past avatar creation. Tried both signed in and not signed in. Selecting an existing avatar and not editing it seems to work.

Files

https://models.readyplayer.me/66a282333d2df5297d0e064c.glb, taken from the error:

[Ready Player Me] WebViewPanel: --- Message is not JSON: {"source":"readyplayerme","eventName":"v1.avatar.exported","data":{"url":"https://models.readyplayer.me/66a282333d2df5297d0e064c.glb","avatarId":"66a282333d2df5297d0e064c","userId":"66a282307f4686004c32e262","metadata":"{\"id\":\"66a282333d2df5297d0e064c\",\"partner\":\"hai\",\"gender\":\"female\",\"bodyType\":\"fullbody\",\"assets\":{\"skinColor\":5,\"eyeColor\":\"9781803\",\"hairStyle\":\"9247424\",\"hairColor\":0,\"beardStyle\":\"\",\"beardColor\":0,\"eyebrowStyle\":\"41308182\",\"eyebrowColor\":0,\"shirt\":\"\",\"outfit\":\"109376347\",\"glasses\":\"9247416\",\"faceMask\":\"\",\"headwear\":\"\",\"lipShape\":\"\",\"eyeShape\":\"\",\"noseShape\":\"\",\"faceShape\":\"\",\"createdAt\":\"2024-07-25T16:50:06.841Z\",\"updatedAt\":\"2024-07-25T16:55:08.254Z\",\"skinColorHex\":\"#b97a5f\%22},\%22favorite\%22:false,\%22default\%22:true}%22}}

To Reproduce

Expected behavior The avatar creator should end the avatar creation process and give the avatar URL to the app.

Screenshots The next button is stuck As you can see, the next button is stuck.

Desktop:

Additionally:

Additional context I was updating the RPM SDK from v1.3.4 to v7.1.1 and encountered this issue. Deleted the old SDK from the package cache, removed the avatarloader package completely and then edited the package manifest to the latest SDK versions. I have not tried recreating the bug in a fresh project, but it has been recreated in the WebView sample.