-
Notifications
You must be signed in to change notification settings - Fork 76
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
Stuck on 'Connecting process started' due to missing community on iOS #2500
Labels
bug
Something isn't working
Comments
leblowl
changed the title
iOS cancels useIO saga sometimes
useIO saga get's cancelled sometimes
May 3, 2024
leblowl
changed the title
useIO saga get's cancelled sometimes
Stuck on 'Connecting process started' due to missing community
May 3, 2024
leblowl
changed the title
Stuck on 'Connecting process started' due to missing community
Stuck on 'Connecting process started' due to missing community on iOS
May 3, 2024
4 tasks
iOS 376 Looks like this one is done, but I'll still keep an eye on ios. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We cancel the useIO saga whenever we close the connection between the backend and frontend. And it looks like this causes us to cancel the createNetwork saga while it's running and this results in the community never being added to the Redux store. In the iOS log below (this is a fresh install), we can see
Sending SIGNAL SHUTDOWN on Tor control port 1
which indicates the app is going to background (I was fetching the invite code). Then we see the useIO saga closing (useIO ending
) and then we connect to the backend when the app is re-opened ('client: Websocket connected', 'AyawhCR74MvflVqnAAAD'
) and then start the useIO saga again ('USE IO TASK', { '@@redux-saga/TASK': true,
). We see that we then enter thecreate network saga
and then receive a connection failure from iOS:which causes the socket to close (
'client: Closing socket connection', 'AyawhCR74MvflVqnAAAD'
) and the useIO saga to be cancelled.We connect again, start the useIO saga and at this point we are at the register username saga and the community hasn't been added yet (it get's added in createNetwork):
Larger log (not the full log, but the relevant parts):
The text was updated successfully, but these errors were encountered: