The folder “manifest.json” doesn’t exist
See original GitHub issueCurrent behavior
I am getting a crash report from Sentry saying:
Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/A7CD2724-A623-49F8-82A5-9B433D1C697F/Documents/RCTAsyncLocalStorage_V1/manifest.json, NSUserStringVariant=Folder, NSUnderlyingError=0x2822e0ae0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
This crash has the highest frequency in my project. ~1.5k a week.
I think the crash occur at this line.
PS: I am using AsyncStorage
through react-native-storage, but because the crash occur in AsyncStorage
I report it here.
PPS: I think it’s weird that the crash log says "The folder “manifest.json” doesn’t exist."
, because manifest.json
isn’t a folder.
Expected behavior
Shouldn’t crash.
Repro steps
I don’t have a way to reproduce yet, but I will keep investigating this issue on my side, and update this thread if I find a way to reproduce.
Any clue to debug this is welcome.
Environment
- Async Storage version: Embedded with React Native 0.58.6
- React-Native version: 0.58.6
- Platform: iOS 12.1.4
- Logs/Error that are relevant:
Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=4 "The folder “manifest.json” doesn’t exist." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/A7CD2724-A623-49F8-82A5-9B433D1C697F/Documents/RCTAsyncLocalStorage_V1/manifest.json, NSUserStringVariant=Folder, NSUnderlyingError=0x2822e0ae0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:22 (6 by maintainers)
Top Results From Across the Web
assets in Symfony6 - manifest.json missing - Stack Overflow
My questions are : How do I fix this manifest.json error ? I see an assets folder with Symfony6, which is not on...
Read more >The Mix manifest does not exist - Laracasts
Let's say the manifest-json file is stored in public/app/manifest-json.js, then for a file located in public/app/css/app.css you would use: The mix()-helper ...
Read more >Troubleshooting - Unity - Manual
This error message indicates that your manifest.json file is malformed. It also tells you the line number where the Package Manager failed to ......
Read more >Custom ASP.NET Core Elastic Beanstalk Deployments
This allows you to add the aws-windows-deployment-manifest.json to your ... If the file doesn't exist, the Elastic Beanstalk container falls back to the ......
Read more >Web Application Manifest - W3C
If json ["dir"] doesn't exist or if json ["dir"] is not a string, return. If text-direction list doesn't ... Note: Web Manifest JSON...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Krizzu Hi, sorry for not mentioning it sooner, but this issue is not resolved.
Please notice that 36e9a12 cannot really fix this issue as it fixes an issue that causing
Failed to parse manifest
error while this issue is causingFailed to write manifest file
.@StevenMasini mentioned it when opening the issue that the problem probably got to do to this code.
Do you think you can reopen the issue?
This happens in my project every time I clear
AsyncStorage
in iOS in the React Native Debugger standalone Mac app. The next time I try to write to async storage, theFailed to write manifest
error pops up in the console. I have to kill the app in the simulator to get it to work correctly again. It’s difficult to tell if the issue lies with how React Native Debugger clearsAsyncStorage
or if it’s this package itself. My project only usesAsyncStorage
from the RNC, not from RN directly.