Skip to content

SlackBridge - Slack -> RC File Attachments not working #10002

@mrplow

Description

@mrplow

Description:

Uploading a file from a synced private channel in slack isn't working. Messages sync 2-way fine

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.1
  • Operating System: Debian 8.10 64bit
  • Deployment Method(snap/docker/tar/etc): docker-compose
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • Node Version: 8.9.3
  • mongoDB Version: 3.4.13

Steps to Reproduce:

  1. Setup RC to sync with Slack by putting in your slack bot token
  2. Test by adding your bot to a channel in slack and send a message
  3. Upload a file in slack, nothing comes across in RC

Expected behavior:

The same file to show in RC

Actual behavior:

Nothing

Relevant logs:

Exception in callback of async function: Error: Meteor.userId can only be invoked in method calls or publications. at AccountsServer.userId (/app/bundle/programs/server/packages/accounts-base.js:516:35) at AccountsServer.user (/app/bundle/programs/server/packages/accounts-base.js:125:23) at Object.Meteor.user (/app/bundle/programs/server/packages/accounts-base.js:340:19) at Filter.validateFileUpload [as onCheck] (/app/bundle/programs/server/packages/rocketchat_file-upload.js:95:25) at Filter.check (/app/bundle/programs/server/packages/jalik_ufs.js:595:53) at FileUploadClass.insert (/app/bundle/programs/server/packages/rocketchat_file-upload.js:590:14) at requestModule.get.Meteor.bindEnvironment.stream (/app/bundle/programs/server/packages/rocketchat_slackbridge.js:857:17) at runWithEnvironment (packages/meteor.js:1240:24)

I checked my bot's setting and it seems correct. I switched from external to internal hubot. I installed a fresh RC to check my Permissions settings (what a pain since the users aren't showing in the same order since anonymous and leader are newer) (also checking a permissions box by accident is very easy and not obvious if using a touch screen).
Anyways nothing helped and I always receive the same error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions