Should provide a more helpful error when a first name and last name is not provided in keycloak #5

Open
opened 2021-11-24 18:21:04 +00:00 by cas · 4 comments
Owner

While working with VREC outline instance we encountered this error.

�2021-11-24T18:04:19.599844000Z COM_DOCKER_SWARM_SERVICE_NAME=members_vrec_coop_app,IMAGE_NAME=outlinewiki%2Foutline%3A0.59.0%40sha256%3A46d4a983b9d98ea5962337b31ec8432b3ba72f891d632cd596619cf0bbf6d7ee,com.docker.swarm.node.id=5sfjnp6l49oy04c6xbo6qf0ek,com.docker.swarm.service.id=tqbdi7t8cx6pfecoda1ox3spd,com.docker.swarm.task.id=m4nzqf16n909949yqn2d3la11 TypeError: Cannot read property 'split' of undefined

This was tracked down to attempting to login without having set a first name and last name set in Keycloak.

While working with VREC `outline` instance we encountered this error. ``` �2021-11-24T18:04:19.599844000Z COM_DOCKER_SWARM_SERVICE_NAME=members_vrec_coop_app,IMAGE_NAME=outlinewiki%2Foutline%3A0.59.0%40sha256%3A46d4a983b9d98ea5962337b31ec8432b3ba72f891d632cd596619cf0bbf6d7ee,com.docker.swarm.node.id=5sfjnp6l49oy04c6xbo6qf0ek,com.docker.swarm.service.id=tqbdi7t8cx6pfecoda1ox3spd,com.docker.swarm.task.id=m4nzqf16n909949yqn2d3la11 TypeError: Cannot read property 'split' of undefined ``` This was tracked down to attempting to login without having set a first name and last name set in Keycloak.
Author
Owner

To be clearer, there is no UI error, only a logs error.

To be clearer, there is no UI error, only a logs error.
Author
Owner

We have confirmed that only the first name needs to be set for this error to be avoided.

We have confirmed that only the first name needs to be set for this error to be avoided.
Owner
Related https://github.com/outline/outline/issues/2781.
Owner

Ran into this again with a new message:

{"name":"users.signin","modelId":null,"attempt":0,"label":"worker","level":"info","message":"Processing users.signin"}
2022-07-14T08:57:14.571589000Z {"error":"null value in column "name" violates not-null constraint","stack":"SequelizeDatabaseError: null value in column "name" violates not-null constraint\n at Query.formatError (/opt/outline/node_modules/sequelize/lib/dialects/postgres/query.js:392:16) ...

Once we set first/last name on the Keycloak side, things worked.

Ran into this again with a new message: > {"name":"users.signin","modelId":null,"attempt":0,"label":"worker","level":"info","message":"Processing users.signin"} 2022-07-14T08:57:14.571589000Z {"error":"null value in column \"name\" violates not-null constraint","stack":"SequelizeDatabaseError: null value in column \"name\" violates not-null constraint\n at Query.formatError (/opt/outline/node_modules/sequelize/lib/dialects/postgres/query.js:392:16) ... Once we set first/last name on the Keycloak side, things worked.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/outline#5
No description provided.