-
Notifications
You must be signed in to change notification settings - Fork 30
RouterException: Server error: INVALID_ARGUMENT: Request contains an invalid argument. #1373
Comments
Not really seeing where the error might be from the docs |
The response should contain more information about what was invalid: https://firebase.google.com/docs/reference/fcm/rest/v1/ErrorCode#ENUM_VALUES.INVALID_ARGUMENT |
Right, but the question is whether or not the error handler for |
I have the same error message, when I try to send a push notification to a mobile device from a php-script. Server error: INVALID_ARGUMENT: Request contains an invalid argument. "endpoint": https://updates.push.services.mozilla.com/wpush/v1/gAAAAABfgDHFI3uKHq48tJLjFHD1Osft2o_4YSJgHeswI1XAPVODFc-ZYlqj2wm... How should I know what is wrong, if the answer is a errno999? |
@Adrianotiger The cause of this error was due to message size limitations. Autopush was allowing larger message sizes than what Firebase would allow. Check the size of your messages, though that error is generic enough that you may have a different problem. The fix for this specific issue is targeted for release 1.58.2: #1437 |
Thanks Mark!
Yeah, the error is fairly generic and we're going to be fixing that
(hopefully) soon. I'll add in that since messages are going over a bridge
we don't control (in this case, Firebase) we lose some of the message to
processing and conversion. This isn't a problem for chrome, since they own
the bridge they're sending the data over so no reformatting is required.
Normally, the server should kick back a message stating that the message is
too big for a specific platform, so there may be something else at play.
You can see what version of software is running on our servers with:
`curl https://updates.push.services.mozilla.com/__version__`
…On Fri, Oct 9, 2020 at 3:24 PM Mark Drobnak ***@***.***> wrote:
@Adrianotiger <https://github.com/Adrianotiger> The cause of this error
was due to message size limitations. Autopush was allowing larger message
sizes than what Firebase would allow. Check the size of your messages,
though that error is generic enough that you may have a different problem.
The fix for this specific issue is targeted for release 1.58.2: #1437
<#1437>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1373 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAIXK2OHHMYD4WKSMJ25EDSJ6ES5ANCNFSM4LXAVMLQ>
.
|
Thank you. Finally I was able to implement it on Firefox mobile, using aes128gcm as encryption and setting autopad to false. |
Re-opening as this isn't fixed in this release. |
Seeing a spike in these. Really need to add some additional info to the sentry error including: |
The spike began on May 1st (suspicious).
AFAICT from their general error docs and the firebase code docs for INVALID_ARGUMENT "An extension of type google.rpc.BadRequest is returned to specify which field was invalid." which would be the Many of the errors seen during the spike have no There's also some "The registration token is not a valid FCM registration token" and CancelledError (likely timeouts) errors. |
Staring since around Mar. 16
https://sentry.prod.mozaws.net/operations/autopush-prod/issues/6072684/
The text was updated successfully, but these errors were encountered: