-
Notifications
You must be signed in to change notification settings - Fork 58
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
All mutations hadn't been executed after internet connection type change #2 #121
Comments
Hi @DeMoss15 When you said internet connection type change, do you mean switching internet connection from off to on? |
Hi, @muellerfr. I mean switching type of internet connection. for example: from wifi to mobile internet or vice versa. And please, specify what do you mean under the "code snippet". What should this code show? |
Hi, @DeMoss15 you said "execute few mutations -> wait about 15 min -> switch internet connection -> mutations doesn't work", my question is, in the first 15 min, is the internet connection available? if yes, why does not the mutations finish in this 15min? It will be helpful if you can provide code snippet of how you initialize the environment and execute the mutations |
@sunchunqiang It's only approximately steps. Here is our settings for AWSAppSyncClient and CognitoUserPoolsAuthProvider
and example of mutation:
|
I see the same behavior as in #108. In the attached log, I see that the device went offline at 16:31:31
After that I see the following at 16:31:58, 17:03:18 and 17:03:22 in the log, but at no point do we get a signal that the device was connected.
As you've mentioned, this is hard to reproduce and I haven't been able to reproduce it locally yet. I will continue to work on this - in the interests of eliminating variables, can you confirm that you do have the permission |
While I wasn't able to reproduce this locally, I made some tweaks to the network checking logic to be more resilient. Can you give the latest version, 2.7.8, a try and see if that resolves the issue? |
@cbommas Yes, we have |
@cbommas |
Glad to know that the issue is resolved. Thanks for confirming. |
SDK version: 2.11.0
AppSync version: 2.7.6
It's hard to reproduce this issue.
Steps to reproduce looks like:
execute few mutations -> wait about 15 min -> switch internet connection -> mutations doesn't work
Logs looks like something wrong with queue or AppSyncOfflineMutationManager
Please pay your attention for this log:
FROM EXECUTED MUTATION TO FAIL.txt
Let's look at it closer:
Here we can see the last executed mutation:
than we have a log of internet connection status change:
and here is the first failed mutation:
I think something strange is happening beyond this log:
Unfortunately, I don't understand what exactly. But it seems next line says that network is OK:
The text was updated successfully, but these errors were encountered: