rpm-unity-sdk-core
rpm-unity-sdk-core copied to clipboard
Bad JSON escape sequence: \%. Path 'data.metadata', line 1, position 794.
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
- Build the WebView sample into an Android app and create an avatar.
- Click the
next
button and the app will not respond.
Expected behavior The avatar creator should end the avatar creation process and give the avatar URL to the app.
Screenshots
As you can see, the
next
button is stuck.
Desktop:
- Ready Player Me Core version: 7.1.1
- Ready Player Me WebView version: 2.2.1
- glTFast version: 6.0.1
- Unity Editor version: 2022.3.38f1
- Render Pipeline and version: BiRP
- Operating System: Windows
- Platform: Android
Additionally:
- Device: Samsung S10 5G
- OS: Android 12
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.