You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm a new developer and this is my first ever GitHub post so I'm not quite sure if I'm doing this right haha.
I'm currently running into a problem when trying to merge multiple .json files into a single dotlottie.
Whenever I use a .json with embedded images, I get this error from the console:
Uncaught (in promise) DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
at getMimeTypeFromBase64 (https://cdn.skypack.dev/-/@dotlottie/dotlottie-js@v0.6.0-rDITtTvCMEIO6jPFcyv2/dist=es2019,mode=imports/optimized/@dotlottie/dotlottie-js.js:501:12)
at getExtensionTypeFromBase64 (https://cdn.skypack.dev/-/@dotlottie/dotlottie-js@v0.6.0-rDITtTvCMEIO6jPFcyv2/dist=es2019,mode=imports/optimized/@dotlottie/dotlottie-js.js:518:20)
at LottieAnimation._extractImageAssets (https://cdn.skypack.dev/-/@dotlottie/dotlottie-js@v0.6.0-rDITtTvCMEIO6jPFcyv2/dist=es2019,mode=imports/optimized/@dotlottie/dotlottie-js.js:2588:26)
at LottieAnimation.toJSON (https://cdn.skypack.dev/-/@dotlottie/dotlottie-js@v0.6.0-rDITtTvCMEIO6jPFcyv2/dist=es2019,mode=imports/optimized/@dotlottie/dotlottie-js.js:1645:18)
at DotLottie.build (https://cdn.skypack.dev/-/@dotlottie/dotlottie-js@v0.6.0-rDITtTvCMEIO6jPFcyv2/dist=es2019,mode=imports/optimized/@dotlottie/dotlottie-js.js:1305:23)
at mergeAnimations (http://0.0.0.0:8001/:32:10)
at http://0.0.0.0:8001/:38:1
This doesn't happen when using .json files without images.
This is my code:
I'm looking into the issue you've described with merging .json files containing embedded images into a single .dotlottie file and the associated decoding error you're encountering.
It seems like there might be an issue with how the base64 strings are being handled or generated. I'll review the stack trace you've provided and see if I can reproduce the problem on my end.
In the meantime, if you could provide any additional details that might be relevant, like the specific .json files that are causing trouble (if they're not sensitive or proprietary), it would be very helpful for debugging.
Thanks for looking into the problem. The Animation is part of a project that hasn't been published yet. Due to our agency guidelines, I unfortunately can't publicly post it on GitHub. I've sent you the .json file in private via the email in your profile.
Hi, I'm a new developer and this is my first ever GitHub post so I'm not quite sure if I'm doing this right haha.
I'm currently running into a problem when trying to merge multiple .json files into a single dotlottie.
Whenever I use a .json with embedded images, I get this error from the console:
This doesn't happen when using .json files without images.
This is my code:
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: