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

Client Exception #77

Open
Naskall opened this issue May 22, 2018 · 9 comments
Open

Client Exception #77

Naskall opened this issue May 22, 2018 · 9 comments

Comments

@Naskall
Copy link

Naskall commented May 22, 2018

How can i fix this issue ?

Client error: POST https://onesignal.com/api/v1/notifications resulted in a 400 Bad Request response:
{"errors":["app_id not found. You may be missing a Content-Type: application/json header."]}

best regards!

@NaturalDevCR
Copy link

Are you sure that you've set the app_id ?

@Naskall
Copy link
Author

Naskall commented May 31, 2018

Yes, now i have other issue, the player_id isnt in the mysql DB, i dont know how i make it works.

@xcesaralejandro
Copy link

xcesaralejandro commented Oct 3, 2018

Same error, i have mounted a Laravel app in local server and all works ok, but when i upload the same code to different server it's not works.

GuzzleHttp \ Exception \ ClientException(400) Client error: POST https://onesignal.com/api/v1/notifications` resulted in a 400 Bad Request response: {"errors":["Invalid app_id `

and

Client error: POST https://onesignal.com/api/v1/notifications` resulted in a 400 Bad Request response:\n
{"errors":["Invalid app_id format"]}\n`

what can be failing?

  • "php": "^7.1.3",

SOLUTION: this error was created by permissions some files in server. verify permissions and update composer. Also upload again all project.

@ilhamwahabi
Copy link

@xcesaralejandro can you specifically say which is 'some files' that you mean? I think that can help another developer (include me)

@ilhamwahabi
Copy link

Ok, i got my solution

php artisan config:clear

solve my problem

@xcesaralejandro
Copy link

@IlhamWahabiGX I remember that I fixed that with:

composer update
php artisan cache:clear
php artisan config:clear

@Trexology
Copy link

I am also facing this issue, but clearing the cache does not fix it? Could this be a guzzle issue?

@intelligenceBabila
Copy link

Having this same issue. Have cleard cache nothing seems to work, verified if app_id is correct and it is. Verified if player id is sent properly and it is. So am confused right now. No added configuration, I setup the routnotificationonesignal. Function within the user model

@denisakira
Copy link

I'm also having a problem. I've used xdebug to see the flow of data and the app_id is set correctly, but it keeps resulting in:

https://onesignal.com/api/v1/notifications` resulted in a 400 Bad Request response:
{"errors":["app_id not found. You may be missing a Content-Type: application/json header."]}

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

7 participants