Closed NikitaMakhno closed 1 year ago
To be frank, using the built in networking APIs are always going to be a bit brittle. Networking is inherently flaky and three are many ways apps may want to handle retries, backoffs, etc. Instead, I would recommend either: 1 (recommended): Fetch the json/zip file using your own network stack and pass that to Lottie once it is downloaded and verified (maybe with an md5 hash or something) 2) Implement LottieNetworkFetcher and handle retries there. 3) Add a failure listener and handle errors yourself or retruy fetching the animation.
Unfortunately, there isn't much Lottie can do with a simple one-shot network API.
Hi! Сould you help us with this problem?
We also encountered such an error: IllegalArgumentException: Unable to parse composition
All users get the same URL, but the error does not always occur, not for all users and is quite rare, and we do not yet know which URL it happens to, because we use a lot of animations.
Perhaps it has something to do with this error, since they occur about the same number of times:
Or this one:
Or this one:
Lottie version: 6.0.1
Android version: 7-13