Skip to content

Suddenly getting "Request contains an invalid argument" for sending notifications, it was working before #1694

Closed
@PaulvanMotman

Description

@PaulvanMotman

[REQUIRED] Step 2: Describe your environment

  • Operating System version: Google App Engine (F4_1G)
  • Firebase SDK version: 10.0.2
  • Firebase Product: firebase-admin/messaging
  • Node.js version: 14
  • NPM version: v6.14.17

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I’m sending push notifications to both iOS/android devices, looking at my analytics it seems that the iOS notifications are not arriving anymore. I’m getting messaging/invalid-argument, with errorMessage: Request contains an invalid argument. The notifications I’m sending look like this:



{
              notification: { 
                title: 'alarmName', 
                body: 'pushMessage',
              },
              data: {
                uid: 'user_id'
              },
              apns: {
                payload: {
                  aps: {
                    badge: 2,
                  },
                },
              },
              android: {
                priority: 'high',
                notification: {
                    sound: 'default',
                    notification_priority: 'PRIORITY_HIGH',
                    visibility: 'public'
                }
              },
              token: 'fcm_token',
}

There is an array of messages like this, I’m sending with messaging.sendAll(). I’m sending these messages on a daily basis, the issue started on the 9th of May. Anything changed in the firebase sdk, or perhaps apple side?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions