Problem login to project dashboard

Expected behavior

I’m trying to connect to my project dashboard but I can’t.

Actual behavior

When I try to login it tells me “Unexpected error”. It’s the same in production/development.

Failure Logs

When I inspect the Chrome console I’ve got “http://localhost:3310/forest/sessions 500 (Internal Server Error)”.

In my terminal, when I try to connect I’ve got :

TypeError: Cannot read property 'renderingId' of undefined
at getRenderingIdFromUser (/app/node_modules/forest-express/dist/middlewares/permissions.js:18:15)
at /app/node_modules/forest-express/dist/middlewares/permissions.js:37:27

Context

I was modifying a file in development mode. I didn’t change my production files when it was working perfectly, but I’ve got the same error when I try to connect in production or dev mode.

Hi @XavierColombel,

I already saw that errors and most of the time it just means the jwt token is invalid.
When that happens to me I tried to logout then login and it worked.

I hope that helps :wink:

I rolled back to an previous commit and it works now. Thank you @vince.

1 Like