Skip to content
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

AsyncStorage not working frequently #19949

Closed
MSSPL-PiyaleeMaiti opened this issue Jun 28, 2018 · 5 comments
Closed

AsyncStorage not working frequently #19949

MSSPL-PiyaleeMaiti opened this issue Jun 28, 2018 · 5 comments
Labels
Platform: Linux Building on Linux. Resolution: Locked This issue was locked by the bot.

Comments

@MSSPL-PiyaleeMaiti
Copy link

Environment

Environment:
OS: Linux 4.4
Node: 6.14.1
Yarn: Not Found
npm: 3.10.10
Watchman: 4.7.0
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.4.1
react-native: 0.54.4 => 0.54.4

Description

In our app we use AsyncStorage API. But there is a problem occur. The problem is from the first time this API is working fine. But after some time response is not coming from AsyncStorage and also not showing any error message, basically AsynStorage totally stopped working. This is happens frequently. Don't know why this is happen. Is there any promise issue or anything else? This is happens both in ios and android. We build in release mode in ios but still getting issue frequently.

Reproducible Demo

My code is below. When the issue occur then we can't get any console.log in between AsyncStorage.multiGet. Also not showing any err log also.

AsyncStorage.multiGet(keys, (err, stores) => {
       console.log(err);
       console.log(stores);
      });

Anyone please suggest any solution, Why this is happen!

@OtacilioN
Copy link

Duplicated from #14101 ??

@MSSPL-PiyaleeMaiti
Copy link
Author

@OtacilioN Can you tell me what the problem and why this is happening?

@OtacilioN
Copy link

OtacilioN commented Jun 29, 2018

Are you with the remote debug active? In my case it happens only with the remote debug on, and I don't know exactly why it happens, but the promise just not returns, I am using GraphQL with Apollo and the same happens with my query promises ,when remote debug is on. I think that is a problem with remote debug and not with Async Storage. So if you turn off the remote debug and the error disappear, relax in production it just not happen. It is just annoying in development.

@kelset
Copy link
Contributor

kelset commented Jun 29, 2018

Yes this really looks like it's a duplicate of #14101.
I'll close this until there are enough evidences that the two are different issues.

@kelset kelset closed this as completed Jun 29, 2018
@MSSPL-PiyaleeMaiti
Copy link
Author

MSSPL-PiyaleeMaiti commented Jun 29, 2018

@OtacilioN We do a release build in iOS but we are getting the issue for AsyncStorage. And in debug mode when AsyncStorage not working then after closing remote debugger still not working. It's working again when we close the app and re-open the APP. Why this is happening can you tell me? And what is the solution can you suggest for me?

@kelset I know it's a duplicate issue, but in the previous issue, there is too much conversation so I can't post any comment. That's why I create a new one.

We have a big problem with AsyncStorage in release build also, it's so urgent. Can anyone one suggest any solution?

@facebook facebook locked as resolved and limited conversation to collaborators Jun 29, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Linux Building on Linux. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants