Skip to content
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]: Login: No identity model found #140

Closed
emiltsang-flow opened this issue Mar 14, 2024 · 2 comments
Closed

[Bug]: Login: No identity model found #140

emiltsang-flow opened this issue Mar 14, 2024 · 2 comments

Comments

@emiltsang-flow
Copy link

What happened?

"onesignal-vue": "^2.0.1"
OSModelStore.js:32 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'modelId')
at Ji.subscribeUpdateListener (OSModelStore.js:32:41)
at Ji.add (OSModelStore.js:16:14)
at en.add (CoreModuleDirector.js:106:32)
at tn. (LoginManager.js:113:9)
at Generator.next ()
at r (tslib.es6.js:118:58)

When I try to call the this.$OneSignal.login(EXTERNAL_ID), I got this error.

What browsers are you seeing the problem on?

Chrome (Chromium)

What operating system are you running?

macOS 14.1

Steps to reproduce?

1. Install "onesignal-vue": "^2.0.1"
2. Run the app
3. invoke this.$OneSignal.login(EXTERNAL_ID)
4. console error Cannot read properties of undefined (reading 'modelId')

What did you expect to happen?

Able to set the external id to one signal user

Relevant log output

OSModelStore.js:32 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'modelId')
    at Ji.subscribeUpdateListener (OSModelStore.js:32:41)
    at Ji.add (OSModelStore.js:16:14)
    at en.add (CoreModuleDirector.js:106:32)
    at tn.<anonymous> (LoginManager.js:113:9)
    at Generator.next (<anonymous>)
    at r (tslib.es6.js:118:58)
@jkasten2
Copy link
Member

Thanks for reporting, we are able to reproduce this issue, but only after OneSignal.logout() is called. It happens if a push subscription has not been created yet. We will look making a fix for this scenario.

@jkasten2
Copy link
Member

jkasten2 commented Oct 9, 2024

This has been fixed in this release:
https://github.com/OneSignal/OneSignal-Website-SDK/releases/tag/160203

This update is automatic, the JS library this depends on always points the latest production WebSDK on cdn.onesignal.com.

@jkasten2 jkasten2 closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants