Skip to content

🐛 Bug Report: Empty "title" field in Push Channel Messages API Response (Self-Hosted) #8117

@waris-zeron

Description

@waris-zeron

📜 Description

When fetching messages through the API endpoint /v1/messages with push channel filter, the response includes messages but the "title" field is empty in the response. This occurs in the self-hosted version of Novu.

👟 Reproduction steps

Steps to Reproduce

  1. Set up self-hosted Novu instance
  2. Send push notifications through the Novu API
  3. Make a GET request to: /v1/messages?channel=push&page=6&subscriberId={subscriber_id}
  4. Observe the response

Environment

  • Deployment Type: Self-hosted
  • Novu Version: 2.0.0
  • Push Provider: FCM (Firebase Cloud Messaging)

Questions

  1. Is this behavior specific to the self-hosted version?
  2. Are there any specific configuration requirements for push notification titles?
  3. Could this be related to how the push notification templates are configured?

Impact

This issue affects the ability to properly track and manage push notifications through the API, as the title information is lost or not properly retrieved.

👍 Expected behavior

Expected Behavior

  • The "title" field should contain the push notification title that was sent
  • The field should not be empty when a title was provided in the original notification

👎 Actual Behavior with Screenshots

Current Behavior

  • The API returns messages successfully
  • The "title" field in the response is empty ("") for push notifications
  • Other fields in the response appear to be populated correctly

Novu version

v2.0.0

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

Additional Context

  • This issue specifically affects the push channel messages
  • The issue is consistent across different pages of results
  • Other notification channels (email, etc.) may not be affected

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions