Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

/account/ gives stack trace or server error

Open sinteur opened this issue 10 years ago • 3 comments

I was editing my own account, and to get back to the home page I tried to remove all but the domain from the browser address bar. However, I accidentally left on /account/ and got a full stack trace.

On https://demo.rocket.chat/account/ all it gives is an internal server error message. On my own server, I got this:

OAuth2Error: Malformed auth header at OAuth2Error (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/oauth2-server/lib/error.js:30:12) at Authorise.getBearerToken (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/oauth2-server/lib/authorise.js:78:19) at run (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/oauth2-server/lib/runner.js:15:14) at runner (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/oauth2-server/lib/runner.js:19:5) at new Authorise (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/oauth2-server/lib/authorise.js:45:3) at /root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/oauth2-server/lib/oauth2server.js:70:12 at Layer.handle as handle_request at next (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/express/lib/router/route.js:131:13) at Route.dispatch (/root/.meteor/packages/rocketchat_oauth2-server/.1.1.1.l8310p++os+web.browser+web.cordova/npm/node_modules/express/lib/router/route.js:112:3) at Layer.handle as handle_request

sinteur avatar Jan 07 '16 22:01 sinteur

To me it seems that this consistently reproduces when trying to do another Oauth after an already interrupted Oauth authentication (e.g. In my case Google Oauth refused servicing the transaction due to private URL usage).

PS: I have seen the rocket.chat Mac OSX app crash for the same reason.

adyp avatar Jan 10 '16 08:01 adyp

I'm not sure if this was fixed by someone already or not, but for me it correctly shows the account profile. Can you test again going to https://demo.rocket.chat/account/ ? Thanks.

marceloschmidt avatar Jan 13 '16 17:01 marceloschmidt

Looks fixed on my server to. I'll close it - good work team!

sinteur avatar Jan 13 '16 20:01 sinteur