-
Notifications
You must be signed in to change notification settings - Fork 198
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
"Incorrect player_id format in include_player_ids (not a valid UUID): [object Object]" #592
Comments
May I see your code example? Also you might want to try converting the array of ids into a string before inserting it into the JSON |
I used the public method from our SDK and was able to send a notification to 2 users with no issue. Here is the format I followed for the JSON and the example code.
|
I changed it to use the api instead of using a server because this was just too frustrating to solve |
Ran into this error, still happening to me. Anyone else? |
Can't get player by any of ids (Subscription ID or OneSignal ID) irb(main):021:0> osid = 'd4971211-2cc3-4ba1-ac67-135821f473ed'
=> "d4971211-2cc3-4ba1-ac67-135821f473ed"
irb(main):022:0> osr = OneSignal::Player.get(id: osid)
Traceback (most recent call last):
1: from (irb):22
OneSignal::OneSignalError (OneSignal::Player#Get error - uri: https://onesignal.com/api/v1/players/d4971211-2cc3-4ba1-ac67-135821f473ed params: - http status : 400 - http body : {"errors":["app_id must be a valid UUID"]})
irb(main):023:0> osid = 'bdb85739-9f0d-4460-a2d2-d53dac617607'
=> "bdb85739-9f0d-4460-a2d2-d53dac617607"
irb(main):024:0> osr = OneSignal::Player.get(id: osid)
Traceback (most recent call last):
1: from (irb):24
OneSignal::OneSignalError (OneSignal::Player#Get error - uri: https://onesignal.com/api/v1/players/bdb85739-9f0d-4460-a2d2-d53dac617607 params: - http status : 400 - http body : {"errors":["app_id must be a valid UUID"]})
irb(main):025:0> Getting the "app_id must be a valid UUID" error. |
Description:
I always get the error when trying to send a mobil notification, it works fine when using postman, but when sending through the app it gives the error.
(your description here)
Environment
Steps to Reproduce Issue:
make an http POST request to this address from within an ionic4 angular 8 application:
https://onesignal.com/api/v1/notifications
Anything else:
(crash stacktraces, as well as any other information here)
if I copy and paste the JSON into postman and make a post request to the address then I receive the notification, however, when sending a post request from within the application I always get that error.
thanks for your help
The text was updated successfully, but these errors were encountered: