-
Notifications
You must be signed in to change notification settings - Fork 393
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with respond
to update message returning cant_update_message
#2063
Comments
Hi @callumsteele4 ! 🤔 This The steps you've highlighted in the sequence of events all look right to me. Any chance the some reason the
Do you have the ability to share a code snippet for us to try to see if we can reproduce your issue? |
Hey @srajiang, thanks for the prompt reply! I'm using the The channel is private (but the app is invited), could that have an impact? Edit: this also happens in public channels. I'm using the I'm assuming I shouldn't be passing I'll have a look into whether I can create a minimal reproduction of this issue over the weekend. Thanks again for your assistance! |
Simplifying things somewhat, I still see this error even directly hitting the API with the bot user oauth token: Presumably this suggests there's either something incorrect with the scopes the app has or the message itself? Scopes are:
If I use |
Should be! Assuming this original message was sent by your app, and assuming the
Does your app's bot user token start with an
Yes, assuming you've set up bolt the right way with the token available in the environment and the |
xoxb. Yup, I'll dig into this a little more over the weekend I think. I suspect its something up with what respond is doing given I can update a message I directly post via the API. I'll dig into the code in this repository / dependencies to see what its calling on the API as well as use Thanks! |
It does look to be an issue with using This errors when I attempt to use
This successfully updates when I use
This also successfully updates when I use
Perhaps there are some limitations around updating a message with a Given I can use |
respond
to update message returning cant_update_message
Ah @callumsteele4 - this fell off my radar for a bit, but glad you were able to get unblocked in any case. I noticed in the docs theres a
Were you using this property? |
Hi @srajiang, The message is originally posted without Further attempts to update the message succeed when I've directly interacted with the message, am supplying The above issue is with regards to updating a message when using See the
|
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
I still believe this requires further investigation. |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number. |
I'm struggling to work out how to update a message that has been previously created by the Slack app.
I'm receiving the following error:
As you can see I have the necessary scopes and I'm not receiving much actionable information in the error message.
Any advice on what I need to modify in my approach would be greatly appreciated!
Reproducible in:
The Slack SDK version
"slack/bolt": "^3.12.1",
Node.js runtime version
v18.16.0
OS info
ProductName: macOS
ProductVersion: 14.3
BuildVersion: 23D56
Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
Steps to reproduce:
The sequence of events is:
respond
with the message contentsI'm passing the message timestamp through steps 4->7 via metadata in the modal, and utilising that in chat.update.
Expected result:
I expect the API to accept the request to update the original message.
Actual result:
I receive the error specified above.
The text was updated successfully, but these errors were encountered: