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

Null error And Invalid Request 400 #31

Closed
sdogruyol opened this issue Sep 9, 2013 · 2 comments
Closed

Null error And Invalid Request 400 #31

sdogruyol opened this issue Sep 9, 2013 · 2 comments

Comments

@sdogruyol
Copy link

I was using this module to send notifications to more than 1k+ users. Till last week i had no problems and it was working perfectly. But this week i couldn't send any notification to users.

Getting a 400 invalid request error without any hint. I know that it's something related with my JSON data format being wrong or so but i can send notification to a single user without any problem.

Anyone experienced something like this?

Here's the message options that i use.

messageOptions = {
        collapseKey : "some_key",
        delayWhileIdle : false,
        timeToLive : 3600*12,
        data : {
            content : "Some text"
        }
    }
@sdogruyol
Copy link
Author

Seems like the problem is from having not registered devices in your device_ids.

If you are sending multiple registration_ids and any of them is not registered you gonna get a null error with 400 error code.

@deerawan
Copy link

So, the solution is send push notif one by one per registration id, right?

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

3 participants