Skip to main content

Team chat error codes (mpbx-chat)

Raised by the chat routes (W7-CHAT-01). Messages never contain the text of a message, a group name or a file name; they name ids and field names at most. A room the caller is not a member of is answered with the generic MPBX-NOT-FOUND, exactly like a room that does not exist, so a room's existence is never revealed to outsiders. Guide: Team chat.

CodeKindMeaningWhat to do
MPBX-CHAT-NOT-A-USERpermission_deniedThe caller is not an active user of this company (a system administrator acting inside a company, an API key, or an account that was disabled). Chat is for the people of a company.Sign in as a user of the company.
MPBX-CHAT-USER-UNKNOWNinvalid_argumentA user named in the request does not exist in this company or is disabled.Check the user ids.
MPBX-CHAT-SELFinvalid_argumentA 1:1 chat needs another user.Name a colleague.
MPBX-CHAT-GROUP-TOO-LARGEconflictA group holds at most 200 members.Create a second group.
MPBX-CHAT-DIRECT-FIXEDconflictA 1:1 chat cannot be renamed and has no member changes.Create a group instead.
MPBX-CHAT-NOT-OWNERpermission_deniedOnly the owner of a group renames it or adds and removes other members. Any member may leave.Ask the owner, or leave the group yourself.
MPBX-CHAT-INVALIDinvalid_argumentThe group name, the message text, the caption or the client token is not acceptable (empty, too long, or contains control characters).Fix the named field. A message holds up to 4000 characters, a group name up to 100.
MPBX-CHAT-ATTACHMENT-TOO-LARGEinvalid_argumentThe file is larger than the configured limit ([chat] max_attachment_bytes, 16 MiB by default).Send a smaller file, or ask the administrator to raise the limit.
MPBX-CHAT-ATTACHMENT-TYPEinvalid_argumentThe file type is not on the allow-list, the declared content type does not match the file name, or the content is not what the name says.Send an image, PDF, office document, text or CSV, audio, MP4 video or ZIP file.
MPBX-CHAT-ATTACHMENT-INVALIDinvalid_argumentThe file is empty or has no usable file name.Send a non-empty file with a name.
MPBX-CHAT-ATTACHMENTS-UNAVAILABLEunavailableThe server has no object store ([files]), so it cannot take or serve attachments. Text chat works.Ask the administrator to configure [files].
MPBX-CHAT-NOT-SENDERpermission_deniedOnly the sender edits a message; only its sender or the owner of the group deletes it (W10-CHAT-01).Ask the sender, or the group owner.
MPBX-CHAT-MESSAGE-DELETEDconflictThe message was deleted: it cannot be edited, replied to or reacted to.Write a new message.
MPBX-CHAT-REACTION-INVALIDinvalid_argumentThe reaction is empty, longer than 16 characters, has control characters or spaces, or you already put 20 different reactions on that message.Use one emoji; remove one of your reactions first.
MPBX-CHAT-SEARCH-INVALIDinvalid_argumentThe search text has no word to look for (empty, only punctuation) or is longer than 200 characters.Type at least one word.
MPBX-CHAT-RETENTION-INVALIDinvalid_argumentThe retention period must be 1 to 3650 days.Pick a period in that range (365 days is the default).