RocketChat / hubot-rocketchat

Rocket.Chat Hubot adapter
MIT License
580 stars 229 forks source link

Getting Error message message: 'User not found [403]', errorType: 'Meteor.Error' } #330

Closed netwninja closed 5 years ago

netwninja commented 5 years ago

SETUP

HUBOT ==========Rocketchat server

.ENV

export ROCKETCHAT_URL=http://10.0.0.142:3000
export ROCKETCHAT_USER=pibot
export ROCKETCHAT_PASSWORD=password
export ROCKETCHAT_ROOM=general

COMMAND & ERROR LOGs

source .env
bin/hubot -a rocketchat

 password: 'password',
  ldap: false,
  host: 'rocket:3000',
  useSsl: false,
  timeout: 20000,
  rooms: [ 'general' ],
  allPublic: false,
  dm: false,
  livechat: false,
  edited: false,
  integrationId: 'js.SDK',
  roomCacheMaxSize: 10,
  roomCacheMaxAge: 300000,
  dmCacheMaxSize: 10,
  dmCacheMaxAge: 100000 }
[Thu Nov 07 2019 06:17:21 GMT+0000 (Greenwich Mean Time)] INFO [connect] Connected
[Thu Nov 07 2019 06:17:21 GMT+0000 (Greenwich Mean Time)] INFO [login] Logging in pibot
[Thu Nov 07 2019 06:17:21 GMT+0000 (Greenwich Mean Time)] INFO [login] Error: { isClientSafe: true,
  error: 403,
  reason: 'User not found',
  message: 'User not found [403]',
  errorType: 'Meteor.Error' }
[Thu Nov 07 2019 06:17:21 GMT+0000 (Greenwich Mean Time)] ERROR Unable to login: {"isClientSafe":true,"error":403,"reason":"User not found","message":"User not found [403]","errorType":"Meteor.Error"}

And using the same above mentioned BOT account i can login to rocket chat via GUI or WEB. I know for sure the user account has been setup correctly(username as pibot, Role as BOT, EMAIL verified option is checked, using outlook email account and password change option disabled)

Thanks GS

netwninja commented 5 years ago

Issue got resolved after enabling View-C option for BOT under Permissions. Had to try Hubot connection to RC multiple times. Not sure if it's a bug.