-
Notifications
You must be signed in to change notification settings - Fork 219
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
[Bug]: One or more Aliases claimed by another User #714
Comments
same issue |
@jt274 Thank you for reporting we are investigating both issues. For the login issue how many devices have used the User1 external_id. There is a subscription limit of 20 subscriptions that you might be hitting when testing and the error message might misleading |
@emawby |
@jt274 Yes a uninstall/reinstall counts as a new subscription (new push token) so that may be the issue, but the error message should indicate that subscription limit was hit in that case. It looks like the 409 is expected, but the SDK should be handling it for you. The 500 error in the log is likely the root cause of the problem. Are you able to share the request of the |
@emawby Are you wanting the app ID and user's onesignal ID (the parts I redacted)? |
If I search the external ID in the onesignal dashboard, it pulls up 6 subscriptions matching the external ID, all associated with one onesignal ID. I believe this is the 500 error you're referring to:
|
The app is trying to use the
However, it returns the 409 error because the external id is already taken by another onesignal user. I believe it is supposed to update the already existing onesignal user by issuing the
This is according to the docs here: https://documentation.onesignal.com/reference/create-alias The logged in user should then be linked to the |
Although I have not done extensive testing, this issue appears to be resolved on the back end. @emawby can you confirm? |
any updates here? |
any updates on this? |
@emawby any updates? |
Hi @jt274 sorry for the delayed response. There have been numerous backend fixes since August, so it may have been fixed. Are you still seeing this 500 response anymore? I'll explain more about how the SDK handles the 409 response:
|
Hi @RogerBrusamarello @ChoyCheeWei @vasilich6107, please tell me more about what you are running into and what version of the SDK you are using. |
Having the same issue.
|
facing the same issue... any updates? |
Same issue(( (v16) |
I do also have issue where same user signs in from another device. It throws the error. |
Same here, tryed to delete the aliase with postman but get
|
Same error |
The same issue |
Hi, please add more details about your issue. Please explain in detail beyond a one liner. As I explained above, the SDK handles 409 errors:
|
this issue is still there. A user can easily have multiple devices or can change a device at some point and despite having an entry in the CRM it won't be possible to have said entry with the external_id correctly set. "A user is a new concept which is meant to represent your end-user. A user has zero or more subscriptions and can be uniquely identified by one or more aliases. In addition to subscriptions, a user can have data tags which allows for user attribution." from your documentation |
I'm facing the exact same problem. After deleting a few entries with that externalId I was at least able to get the "new" device displayed as "subscribed" in the subscriptions page... But the 409 was popping up also. Btw. I just saw that this is the Flutter repository... I use react-native and it's the same problem. |
What happened?
v5.0.0 throws the error after following the migration guide and using an existing user. App uninstall/reinstall does not fix the issue. Issue did not occur on Android emulator using
User1
account, but did occur on physical device usingUser2
account.The docs specifically state that if the user already exists when logging in, the user will be updated. If the user does not exist, they will be created.
After throwing the error, it repeatedly retries in an infinite loop.
Additionally, the following error is thrown:
MissingPluginException(No implementation found for method OneSignal#optIn on channel OneSignal#pushsubscription)
Steps to reproduce?
What did you expect to happen?
User should be updated according to
external_id
. Any anonymous user should be merged with existing user according toexternal_id
.OneSignal Flutter SDK version
5.0.0
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: