-
Notifications
You must be signed in to change notification settings - Fork 33
Avoid conflicts for Topcoder/ubahn users #46
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
@sachin-maheshwari Can you please have a look at this please ? |
@nkumar-topcoder from the above description, it is not looking related to "new auth" or m2m core JS lib (for caching m2m token locally). |
@callmekatootie sorry to disturb you again, but I guess only you could help us to find out the root of this issue quickly. After we fixed issue #81 we can create new user in V5. But if we try to retrieve such users after, they are not found by v5. Here is an example:
|
@maxceem This is an issue with the ubahn api - I will resolve this on priority |
@maxceem Could you kindly check now. Let me know if you are still facing an issue |
Thanks, @callmekatootie. It works for new users which is great. The only thing for the users we created previously - it doesn't return them. I've tried with a new user
And it is retuned:
For the user This request returns
But if I try to create this user again, I get a |
Makes sense. I have currently requested the devops team to run the data sync script - should take about 45 mins. Will let you know when it completes. |
@maxceem can you try now. We have synced the data b/w the db and elasticsearch |
Thank you, @callmekatootie. Works perfectly now. User
|
I think we found the root cause of this issue and it's all covered now, so I'm closing it. |
Follow up from #23 (comment)
Sometimes we get conflict error during ensuring user exists in ubahn (when we create it):
It is possible the handle stored in your token was already used to create an ubahn user and associated with an userId other than the userId stored in your token.
So when the getUserId function tried to use the userId stored in your token to find an existing ubahn user, it got no record. It then attempted to create new ubahn user with the handle stored in your token, unsurprisingly, ending up conflict error.
Currently the data on Topcoder Dev are not reliable and stable, IMO. To avoid the conflict error, I would
suggest create a new tc member account with different username so you won't be messed up with any existing data.
Alternatively, You could find the conflicting ubhan user and correct its associated v3 userId(the externalId property) with the one in your user token.
The text was updated successfully, but these errors were encountered: