Open MasterPuffin opened 5 years ago
I remember encountering this error. It has to do with the bots. It was easy to solve by adding the missing id into the users.json. Try sending a message to the bot, I think that should add the user. I remember putting a try catch somewhere. I can't find the data with the error anymore so no way to test. I'll try to post the possible solution.
Would help to add a breakpoint on this line and see what properties message
contains. Either the name of the property has changed from "bot_id"
to something else or it isn't there at all.
Running into a similar issue. The message object indeed does not contain a "bot_id" field at all. In my case, the offending message is an imported message that was sent by a bot, but not in slack. So while it is technically a bot message, there is no bot to link an id with.
{
type: 'message',
subtype: 'bot_message',
text: 'Hi',
ts: '1438879051.000000',
username: 'HipChat'
}
I have the same issue, by the way. Adding a check if the bot_id
key exists in this line:
fixes it.
I get an error 500 always when I try to open a certain channel. Attached is the log