server-application icon indicating copy to clipboard operation
server-application copied to clipboard

The give data failed to pass validation

Open rajeshisnepali opened this issue 1 year ago • 4 comments

After login (or every page refresh), I've getting the error below. 2023-05-16_20-15

Also please provide Nginx Server block.

rajeshisnepali avatar May 16 '23 14:05 rajeshisnepali

This error seems to be related to the time zone in the filter:

Apparently cattr does not store the time zone configured in the company America/Mexico_City (GMT-06:00) in my case and set the default time zone etc/GMT+06:00

image

Apparently cattr does not store the time zone configured in the company America/Mexico_City (GMT-06:00) in my case and set the default time zone etc/GMT+06:00

When I select my time zone the error goes away. image

lexcorp avatar May 16 '23 17:05 lexcorp

image

Unfortunately, it is not working. Am I missing something?

rajeshisnepali avatar May 16 '23 18:05 rajeshisnepali

Ok, I made a video to show what happens: https://youtu.be/srvUc4aSr3Y

Steps to reproduce the error:

1.- I enter the cattr administrator username and password.

2.- When entering correctly I receive the error message: /api/report/dashboard:1 Failed to load resource: the server responded with a status of 422 (Unprocessable Content)

image

And response:

{"status":422,"success":false,"error":{"code":"validation_failed","message":"The given data failed to pass validation.","fields":{"user_timezone":["The user timezone must be a valid zone."]}}}

image

In web page I get this notification: image

Additionally, I note another detail:

  • The administrator user menu does not show the Company Settings option.

image

  • After refreshing the page (F5), the administrator menu shows the option Company Settings. image

I think this error is related to the user's time zone:

image

Since the time zone that is displayed after logging in does not correspond to the time zone that the administrator user has configured image

When I select the correct time zone from the dashboard, the error goes away image

image

The link to the "Team" page is not displayed image

After refreshing the page, the link to the "Team" page appears image

I hope this can help to solve this problem more easily.

lexcorp avatar May 19 '23 20:05 lexcorp

Thank you for the video but it is not working. Need to re-setup or something else.

image

image

image

rajeshisnepali avatar May 22 '23 17:05 rajeshisnepali