Skip to content
Back

Appwrite messaging api error

  • 0
  • Flutter
  • Functions
  • Cloud
Nefnief
13 Oct, 2025, 08:19
TypeScript
Endpoint: https://fra.cloud.appwrite.io/v1
Project: 6899062700398ffeae4f
Database: threed-dating-db
Notification for user: 689a68dc3e3714d2a204
Title: "New user report: other"
Body: "jsnbdndk sjdjdnd"
Data keys: reportId, reporterUserId, reportedUserId, category
Generated messageId: "New_user_report__other" (22 chars)
Sending push notification...
Push error details: {
  "name": "AppwriteException",
  "code": 400,
  "type": "general_argument_invalid",
  "response": {
    "message": "Invalid `messageId` param: Parameter must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char",
    "code": 400,
    "type": "general_argument_invalid",
    "version": "1.8.0"
  }
}
Native logs detected. Use context.log() or context.error() for better experience.
Notification status updated to: failed

these are the logs of my appwrite functions to send pushnotifications over appwrite messages. i tried everything but i cant get it working bacause of the message id. i tried only numbers randome number and letter combinations, nothing works. i dont know what my issue could be. If u need anything other please notify me

TL;DR
Developers are facing an error when trying to send push notifications using the Appwrite messaging API due to an invalid 'messageId' parameter. The parameter must be at most 36 characters long and must contain specific valid characters. The issue is likely due to the format of the 'messageId'. Ensure that it follows the specified rules.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more