Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Uralstech opened this issue Jul 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Uralstech
Copy link

Uralstech commented Jul 25, 2024

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
The next button is stuck
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.

@Uralstech Uralstech added the bug Something isn't working label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant