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

Forest Admin throws error on login #218

Open
malavikavarma opened this issue Dec 13, 2018 · 3 comments
Open

Forest Admin throws error on login #218

malavikavarma opened this issue Dec 13, 2018 · 3 comments
Assignees

Comments

@malavikavarma
Copy link

Expected behavior

On login to forest admin ,it should render the graphs and all other details of the models should be rendered.

Actual behavior

Currently , forest admin throws error in UI as follows:
Oops, something went wrong.An error occurred in retrieving your data. On logging out and logging in back there is no occurrence of the error. And backend throws error: invalid byte sequence for encoding utf8

There is a token being set during the time of login forest_session_token . This token is being generated by forest admin server. On relogin this token changes and the data is fetched correctly without error. This error occurs repeatedly.

Database used: Postgres

I need to know why this error occurs?

@arnaudbesnier
Copy link
Member

Hi @malavikavarma,

Thanks for the feedback.

  • Could you share the full error logs (if any) you have in your backend?
  • Also do you know how long does it takes for a new "working" session to generate a buggy behaviour?
  • Another idea, do you use some browser plugins that could corrupt the session token during its lifetime? In other words, do you observe the same behaviour in an "Incognito" mode/window (without plugins)?

@malavikavarma
Copy link
Author

  • This is the error message that I got in my backend -
    "err":{"message":"invalid byte sequence for encoding \"UTF8\": 0x00","name":"error","stack":"error: invalid byte sequence for encoding \"UTF8\": 0x00\n at Connection.parseE (/home/app/node_modules/loopback-connector-postgresql/node_modules/pg/lib/connection.js:554:11)\n at Connection.parseMessage (/home/app/node_modules/loopback-connector-postgresql/node_modules/pg/lib/connection.js:379:19)\n at Socket.<anonymous> (/home/app/node_modules/loopback-connector-postgresql/node_modules/pg/lib/connection.js:119:22)\n at Socket.emit (events.js:189:13)\n at addChunk (_stream_readable.js:284:12)\n at readableAddChunk (_stream_readable.js:265:11)\n at Socket.Readable.push (_stream_readable.js:220:10)\n at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)","code":"22021"},"msg":"{ path: '/forest/forest/accounts/count',\n query:\n { fields:\n { accounts:\n 'id,email,status,first_name,last_name,created_at,emailverified,billing_start_date,affiliate_link' },\n searchExtended: '0',\n timezone: 'Asia/Calcutta' },\n body: undefined }","time":"2019-02-23T01:08:54.345Z","v":0}

  • On first login I get this error and after signing out and signing in back soon there is no error.

  • I have not added any extensions. I have tried using different browsers. Still I got the error.

@arnaudbesnier
Copy link
Member

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

No branches or pull requests

2 participants