question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The folder “manifest.json” doesn’t exist

See original GitHub issue

Current 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.

https://github.com/react-native-community/react-native-async-storage/blob/8d275ad706c27962f71849119bc0f1be811a375e/ios/RNCAsyncStorage.m#L366

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:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
Rotemycommented, Jul 2, 2020

@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 causing Failed 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?

9reactions
m2mathewcommented, Nov 11, 2019

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, the Failed 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 clears AsyncStorage or if it’s this package itself. My project only uses AsyncStorage from the RNC, not from RN directly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found