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

Rocket Chat Rest Api Login error (Server error.) #10199

Closed
abdelrahmanahmed opened this issue Mar 22, 2018 · 3 comments
Closed

Rocket Chat Rest Api Login error (Server error.) #10199

abdelrahmanahmed opened this issue Mar 22, 2018 · 3 comments

Comments

@abdelrahmanahmed
Copy link

Description:

I am trying to Send a login request using Rest Api to obtain token and user id .

Server Setup Information:

Version of Rocket.Chat Server: 0.62.2
Operating System: Linux (CentOS)
Deployment Method(snap/docker/tar/etc): Manual: installing on CentOS
Number of Running Instances: 1
DB Replicaset Oplog: ?
Node Version: v8.9.3
mongoDB Version: ?

Steps to Reproduce:

It is not happening every single request , so i can't tell how to reproduce it .

Expected behavior:

{
  "status": "success",
  "data": {
      "authToken": "9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq",
      "userId": "aobEdbYhXfu5hkeqG"
   }
}

Actual behavior:

Server error.

@MartinSchoeler
Copy link
Contributor

Not enough information provided. We need more information on how to reproduce this consistently since this could be result of lots of different problems (like a problem when installing, or the server freezing). Try asking on our forums or community support channel maybe someone can help you debug this further. Thanks!

@abdelrahmanahmed
Copy link
Author

abdelrahmanahmed commented Mar 26, 2018

@MartinSchoeler Thank you for your reply , anyway i found this in my server log

Mar 25 11:42:53 li1537-99 rocketchat: TypeError: Cannot read property 'debug' of undefined
Mar 25 11:42:53 li1537-99 rocketchat: at Object._internalRouteActionHandler [as action] (/opt/Rocket.Chat/programs/server/packages/rocketchat_api.js:175:25)
Mar 25 11:42:53 li1537-99 rocketchat: at Route.share.Route.Route._callEndpoint (/opt/Rocket.Chat/programs/server/packages/nimble_restivus.js:347:32)
Mar 25 11:42:53 li1537-99 rocketchat: at /opt/Rocket.Chat/programs/server/packages/nimble_restivus.js:236:33
Mar 25 11:42:53 li1537-99 rocketchat: at packages/simple_json-routes.js:98:9

@hannes-angst
Copy link

hannes-angst commented Apr 25, 2018

Found the same error in the freshly installed version 0.63.3 on a centOS7.

typeError: Cannot read property 'debug' of undefined
at Object._internalRouteActionHandler [as action] (/opt/rocket/chat/programs/server/packages/rocketchat_api.js:175:25)
at Route.share.Route.Route._callEndpoint (/opt/rocket/chat/programs/server/packages/nimble_restivus.js:347:32)
at /opt/rocket/chat/programs/server/packages/nimble_restivus.js:236:33
at packages/simple_json-routes.js:98:9

How did you fix it?

Looking at the code, I see

    this.logger.debug...

hmmm

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

No branches or pull requests

3 participants