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]: Missing app_id in Player object causes update failures #78

Closed
1 task done
p-janik opened this issue Feb 13, 2024 · 3 comments
Closed
1 task done

[Bug]: Missing app_id in Player object causes update failures #78

p-janik opened this issue Feb 13, 2024 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@p-janik
Copy link

p-janik commented Feb 13, 2024

What happened?

Recently, it was observed that players returned by the onesignal-node-api library do not contain the app_id property, which was previously included. This absence causes issues, particularly when attempting to update player information, as the operation expects a valid app_id, resulting in errors.

Steps to reproduce?

To reproduce the issue, simply retrieve a player using the library and attempt to update the player's information without manually adding an app_id. The library will throw an error indicating that app_id must be a valid UUID.

What did you expect to happen?

I expected the player object retrieved from the library to include the app_id property automatically, allowing for seamless updates without the need for manual intervention.

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@p-janik p-janik added the bug Something isn't working label Feb 13, 2024
@JoeDareZone
Copy link

Thanks a million for this observation! Saved me hours of time.

@nan-li
Copy link
Contributor

nan-li commented Mar 26, 2024

Thank you @p-janik for reporting and helping other users with your observation,

The node library makes the same server calls as someone hitting the OneSignal endpoints directly, passing the same information to and from the server.

It does look like the "get player" (https://documentation.onesignal.com/reference/view-device) endpoint is no longer returning app_id but the "update player" endpoint (https://documentation.onesignal.com/reference/edit-device) still requires it.

Apologies for the confusion.

@iAmWillShepherd
Copy link

It's my understanding that you have to provide an App ID to View Device, so not having the property on each device shouldn't be an issue.

@iAmWillShepherd iAmWillShepherd closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
@iAmWillShepherd iAmWillShepherd added the wontfix This will not be worked on label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants