Bolt-js: message.team missing when a file is uploaded with the message.

Created on 23 Mar 2020  路  4Comments  路  Source: slackapi/bolt-js

Description

message.team missing when a file is uploaded with the message.

What type of issue is this? (place an x in one of the [ ])

  • [x] bug
  • [ ] enhancement (feature request)
  • [ ] question
  • [ ] documentation related
  • [ ] testing related
  • [ ] discussion

Requirements (place an x in each of the [ ])

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version: 1.8.0

node version: 12.16.1

OS version(s): Fedora

Steps to reproduce:

const {App} = require("@slack/bolt");
const app = new App({...});
app.message(..., ({message}) => {
    console.log(message);
})

Expected result:

That message.team is present regardless if there's an attachment or not.

Actual result:

  • When the incomming slack message doesn't have an attachment then message.team is present and correct.
  • When the incoming slack message has attachments then message.team is missing.

Workaround:

app.message(..., ({message, body}) => {
    message.team = body.team_id;
    console.log(message);
})
bug server-side-issue

Most helpful comment

I've shared this with the server-side teams and they've recognized it. Thank you again for reporting this.

All 4 comments

@seblaz Hello, thank you for taking the time to report this. I've verified the issue happens on my end too. This is not an issue related to the Bolt framework but an API response consistency issue in the Events API. I will report this issue to the team concerned.

I've shared this with the server-side teams and they've recognized it. Thank you again for reporting this.

Awesome, thanks!

As I mentioned above, we've already shared the feedback with the server-side engineering team. As we are unable to track the progress in this issue tracker, please let us close this issue. If you have further feedback on this, please contact our customer support team from either /feedback or https://my.slack.com/help/requests .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

i-break-codes picture i-break-codes  路  4Comments

jamesfmac picture jamesfmac  路  5Comments

Falci picture Falci  路  5Comments

dschinkel picture dschinkel  路  4Comments

dginovker picture dginovker  路  4Comments