howdyai / botkit-storage-mongo

A MongoDB storage driver for Botkit
MIT License
54 stars 42 forks source link

Fails to connect even though mongod says connection accepted #17

Open SilverFox70 opened 8 years ago

SilverFox70 commented 8 years ago

Just a note to anyone else who comes across this error, I used the mongo hookup with slakcbutton_bot_interactivemsg.js, but had already tested my program using simple storage. Long story short, the program bypassed creating a new bot since I already had a token, and attempted to populate my "teams" list, which was where the program ultimately hung up (the teams list was empty, so it couldn't make a proper call to startRTM). The failure to connect message was misleading and is not the cause of the issue. It all works fine.

Laptopmini commented 6 years ago

I ran into the same problem, for those wondering how to fix it, just visit /login of your bot to re-authorize it, and it should populate the db with the teams, which will let it startRTM for any of them.