Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: [messageId] is Missing From the Params for Events #7832

Closed
2 tasks done
ItzNotABug opened this issue Mar 16, 2024 · 1 comment 路 Fixed by #7906
Closed
2 tasks done

馃悰 Bug Report: [messageId] is Missing From the Params for Events #7832

ItzNotABug opened this issue Mar 16, 2024 · 1 comment 路 Fixed by #7906
Assignees
Labels
bug Something isn't working product / messaging Fixes and upgrades for the Appwrite Messaging.

Comments

@ItzNotABug
Copy link
Contributor

馃憻 Reproduction steps

Note: Assuming you already have a list of messages in the Messaging Tab


  1. Select any message
  2. Delete the message
  3. The notification appears that the message was successfully deleted
  4. Log to your console & run docker logs appwrite
    Output -
Timestamp: 2024-03-16T14:00:14+00:00
[Error] Method: DELETE
[Error] URL: /v1/messaging/messages/:messageId
Type: InvalidArgumentException
[Error] Message: [messageId] is missing from the params.
[Error] File: /usr/src/code/src/Appwrite/Event/Event.php
[Error] Line: 396

Issue might be coming from here where the required messageId is deemed missing.

馃憤 Expected behavior

No error by providing the correct messageId.

馃憥 Actual Behavior

Error is thrown due to missing messageId.

馃幉 Appwrite version

Version 1.5.x

馃捇 Operating system

MacOS

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@ItzNotABug
Copy link
Contributor Author

Update: The audits.resource label for the linked API Call is set to message/{request.route.messageId} which as per this throws an exception.

Looking at the other labels, it should probably be -

->label('audits.resource', 'message/{request.messageId}')

@eldadfux eldadfux added the product / messaging Fixes and upgrades for the Appwrite Messaging. label Mar 18, 2024
@stnguyen90 stnguyen90 self-assigned this Mar 25, 2024
@stnguyen90 stnguyen90 linked a pull request Apr 2, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / messaging Fixes and upgrades for the Appwrite Messaging.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants