-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
If one social account fails on sync the rest are not executed #4076
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
Comments
Hey @agjohnson, i would like to fix this one during the Djangocon sprint. It's okay? |
@luanfonceca go ahead! |
@luanfonceca yes, the loop is endless because the celery task the server executed crashed, so no proper result is returned to the front end and it keeps trying to get a response. The solution would be to handle the proper exception risen in the server and continue the execution for the next social account. |
@humitos I have some code working for this, but I have a question. I'm returning all the errors like this I'm thinking in returning a list with all the errors instead of just one, but for that I need to modify the api from |
We only use |
Do you think it's better to go verbose here? Isn't it enough (at least for now) to say: "Hey, there was an error with one of your social accounts: our access was revoked. Please, reconnect them to avoid this problem." |
Currently we are showing the name of the failed account, making it generic would be a step back I think. What about re-raising a different message? Something like |
That's way better! |
While working on #4070 I found that if the user has 3 accounts connected and the first one fails for any reason (revoked token, for example) the other two are not going to be executed.
In this case, the user has two options to workaround this:
I think we need to solve this from RTD side. The sync is executed in a celery task by looping over the connect accounts from that user and we need the
Exception
raised by this sync since we are using thestate
and theinfo['error']
attribute to communicate this to the user in the Javascript polling.To reproduce this,
The text was updated successfully, but these errors were encountered: