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

Malformed asset error with Sanity 2.10.0 #29

Open
simonandywilson opened this issue Apr 29, 2021 · 6 comments
Open

Malformed asset error with Sanity 2.10.0 #29

simonandywilson opened this issue Apr 29, 2021 · 6 comments
Labels
bug Something isn't working studio-v2 triaged

Comments

@simonandywilson
Copy link

After upgrading to Sanity 2.10.0, uploading an asset using this plugin causes Sanity to crash with the following error:

Error: Malformed asset _ref 'c77166f1-da6a-478f-9c9e-d747de8dbcf2'. Expected an id like "image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg".
    at parseAssetId (/static/js/app.bundle.js:91740:13)
    at urlForImage (/static/js/app.bundle.js:91870:17)
    at ImageUrlBuilder.url (/static/js/app.bundle.js:92285:14)
    at http://localhost:3333/static/js/app.bundle.js:91545:124
    at DefaultPreview.render (/static/js/app.bundle.js:125438:39)
    at finishClassComponent (/static/js/vendor.bundle.js:20318:31)
    at updateClassComponent (/static/js/vendor.bundle.js:20268:24)
    at beginWork (/static/js/vendor.bundle.js:21778:16)
    at HTMLUnknownElement.callCallback (/static/js/vendor.bundle.js:3346:14)
    at Object.invokeGuardedCallbackDev (/static/js/vendor.bundle.js:3395:16)
@ktisakib
Copy link

I got the same probleeem can aan one help here??

@rohityellapu
Copy link

Got the same problem can anyone help?

@Ferdinand1945
Copy link

same here... has someone found the solution?

@stipsan
Copy link
Member

stipsan commented Jan 26, 2023

If you're able to create a reproduction repository and share it with us I'll take a look 🙂 You don't need to provide a Sanity Project ID and dataset, nor Mux API Credentials.

From the face of it the errors indicate it could be related to how preview thumbnails are setup in the Studio, so it'll be useful to know how the Schema is setup 🤔

@stipsan stipsan added bug Something isn't working studio-v2 labels Jan 26, 2023
@jzhao-30
Copy link

jzhao-30 commented Feb 3, 2023

Same problem, any solutions?

@panrosk
Copy link

panrosk commented Aug 7, 2024

Just had the same error. Is there any workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working studio-v2 triaged
Projects
None yet
Development

No branches or pull requests

7 participants