r
Hi!
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
r
i am trying to integrate with the onesignal tag and i am getting an error { "response": "{\"errors\":\"No user with this id found\"}", "firstAttemptedAt": "2023-07-18T180954.459Z", "content-type": "application/json; charset=utf-8" } i am getting the following error when trying to call rudderanalytics.identify()
h
Hi @ripe-exabyte-85875 Can you please share the entire function call statement?
The error indicates that the user ID you've provided in the identify event is not available in OneSignal. Could you please check?
m
@ripe-exabyte-85875 Can you please share the call as it might be due to wrong externalId
playerId
?
r
if (parseCookies()['grao-userId']) { window.rudderanalytics.identify(parseCookies()['grao-userId'], { name: parseCookies()['grao-displayName'], userId: parseCookies()['grao-userId'], }); } else { window.rudderanalytics.identify(randomUUID(), {}); }
if there is a cookie grao-user Id it means that my user is logged in
m
We map
randomUUID
or
parseCookies()['grao-userId']
to
external_user_id
of One signal. This help to later on check/update the user based on
external_user_id
as well. Now for this error will need to debug more. Can you share you workspaceId or email from which you created rudderstack account. Also are you sure you didn't send email or phone in the payload as from what I can see either one is required for creating a device