-
-
Notifications
You must be signed in to change notification settings - Fork 454
JsonCacheInfoRepository: FormatException: Unexpected end of input (at character 1) ^ #450
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
Open
1 of 2 tasks
Comments
Any updates on when this issue will be fixed ? |
Is there any update on this? I'm facing the same issue! |
I get this issue a lot too |
4 tasks
Do we have any update on this? |
@bothyculture Why you decided to close your PR? We really need this fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bug Report
occasionally this error is generated when initializing CacheManager with JsonCacheInfoRepository
This happens when the {databaseName}.json file is created but empty and jsonString = ""
A possible solution would be to check that the file is not empty before decoding the json
Expected behavior
no error
Configuration
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.1, on Microsoft Windows [Versi¢n 10.0.22631.3296], locale es-CL)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.8.2)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.87.2)
[√] Connected device (4 available)
[√] Network resources
• No issues found!
Version: 3.3.1
Platform:
The text was updated successfully, but these errors were encountered: