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]: #32

Closed
tony-schumacher opened this issue Nov 9, 2022 · 2 comments
Closed

[Bug]: #32

tony-schumacher opened this issue Nov 9, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tony-schumacher
Copy link

What happened?

If I use the getPlayers() API, it throws a none readable exception. All other APIs work.

Steps to reproduce?

1. Install @onesignal/node-onesignal
2. call `client.getPlayers(appid, '300', 0);`

What did you expect to happen?

Retrieve a list of players.

Relevant log output

Message: "Unknown API Status Code!\nBody: \"[object Object]\""
    at new ApiException (/Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/apis/exception.ts:12:9)
    at DefaultApiResponseProcessor.<anonymous> (/Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/apis/DefaultApi.ts:1577:15)
    at step (/Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/dist/apis/DefaultApi.js:46:23)
    at Object.next (/Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/dist/apis/DefaultApi.js:27:53)
    at /Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/dist/apis/DefaultApi.js:21:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/dist/apis/DefaultApi.js:17:12)
    at DefaultApiResponseProcessor.getPlayers (/Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/dist/apis/DefaultApi.js:1199:16)
    at /Users/tonyschumacher/git/terra-backend/node_modules/@onesignal/node-onesignal/types/ObservableAPI.ts:456:107
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 400,
  body: 'Unknown API Status Code!\nBody: "[object Object]"'
}


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
@tony-schumacher tony-schumacher added the bug Something isn't working label Nov 9, 2022
@emdrayallday
Copy link

Seeing a similar result calling client.getPlayers(appId)

@nan-li
Copy link
Contributor

nan-li commented May 9, 2024

Closing due to oudated, looks like same issue as #19

@nan-li nan-li closed this as completed May 9, 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
Projects
None yet
Development

No branches or pull requests

4 participants