Skip to content

SendResponse.error.code is undefined #3010

@rejhgadellaa

Description

@rejhgadellaa

[REQUIRED] Environment

  • Operating System version: macOS 15.7.2 (24G325)
  • Firebase SDK version: 13.6.0
  • Firebase Product: messaging
  • Node.js version: 22.18.0
  • NPM version: 10.9.3

[REQUIRED] The problem

Steps to reproduce:

  • Send push messages with sendEachForMulticast()
  • Inspect the return value (SendResponse[])
  • If a SendResponse has an error, the SendResponse.error.code is undefined

Relevant Code:

const result = await sendEachForMulticast(/* ... */)

result.failureCount && result?.responses ?? [] ).forEach( 
  response => console.log( response.error.code, response.error ) 
);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions