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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incoming Webhooks cannot send direct messages as rocket.cat #1703

Closed
Morgul opened this issue Dec 19, 2015 · 2 comments
Closed

Incoming Webhooks cannot send direct messages as rocket.cat #1703

Morgul opened this issue Dec 19, 2015 · 2 comments

Comments

@Morgul
Copy link
Contributor

Morgul commented Dec 19, 2015

When the rocket.cat user is used as the user for an Incoming Webhook, it cannot post to direct messages:

2015-12-19T00:22:27.456484652Z Error: [methods] createDirectMessage -> Invalid target user [invalid-user]
2015-12-19T00:22:27.456552694Z     at [object Object].Meteor.methods.createDirectMessage (server/methods/createDirectMessage.coffee:14:14)
2015-12-19T00:22:27.456561755Z     at [object Object].methodsMap.(anonymous function) (packages/rocketchat_lib/server/lib/debug.js:22:1)
2015-12-19T00:22:27.456568815Z     at maybeAuditArgumentChecks (livedata_server.js:1698:12)
2015-12-19T00:22:27.456575327Z     at livedata_server.js:1611:18
2015-12-19T00:22:27.456595127Z     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
2015-12-19T00:22:27.456601352Z     at [object Object]._.extend.apply (livedata_server.js:1610:45)
2015-12-19T00:22:27.456606740Z     at [object Object]._.extend.call (livedata_server.js:1553:17)
2015-12-19T00:22:27.456612256Z     at [object Object].<anonymous> (packages/rocketchat_integrations/server/api/api.coffee:63:14)
2015-12-19T00:22:27.456617709Z     at packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:186:1
2015-12-19T00:22:27.456622649Z     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)

If I use my user, however, this works as expected.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Morgul Morgul changed the title Incomming Webhooks cannot send to direct messages as rocket.cat Incoming Webhooks cannot send to direct messages as rocket.cat Dec 19, 2015
@Morgul Morgul changed the title Incoming Webhooks cannot send to direct messages as rocket.cat Incoming Webhooks cannot send direct messages as rocket.cat Dec 19, 2015
@engelgabriel
Copy link
Member

Seems to be broken indeed.

@Morgul
Copy link
Contributor Author

Morgul commented Dec 23, 2015

I can confirm this is now working with the latest code on develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants