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

Displaying 500 Errors on Datalens #393

Open
RoadToRaichu opened this issue Dec 26, 2023 · 1 comment
Open

Displaying 500 Errors on Datalens #393

RoadToRaichu opened this issue Dec 26, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@RoadToRaichu
Copy link

Current behavior:
When using datalens, I started seeing 500 errors appear. These errors seem to disrupt the normal workflow and functionality of the application.
Reproduction steps:

  1. Open 2 tabs with Datalens
  2. Open dashboards on both tabs and switch to editing mode.
  3. When you try to save changes on the tab that first opened editing, you will receive an error 500.

Screenshots/logs:

datalens-us

"msg":"[Express POST] [updateEntry] ERR.US.ENTRY_IS_LOCKED [9a995701-e1fd-48e9-b679-aa7247078711]"}
"msg":"[Express POST] Request completed [9a995701-e1fd-48e9-b679-aa7247078711]"}
172.18.0.3 - - [26/Dec/2023:09:59:38 +0000] "POST /v1/entries/qdacat4ym1sef HTTP/1.1" 423 165 "-" "axios/1.4.0"

tmp_datalens-us.txt

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
datalens-ui

"msg":"[Express POST] Request failed
 [9a995701-e1fd-48e9-b679-aa7247078711]"}
78.30.254.221 - - [26/Dec/2023:09:59:38 +0000] 
"POST /api/dash/v1/dashboards/qdacat4ym1sef HTTP/1.0"
 500 33 "https://datalens.erp.proceres.ru/qdacat4ym1sef-rodnoe-sevastopol-arhiv" 
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"

tmp_datalens-ui.txt

изображение

изображение

I am attaching any relevant screenshots or logs that may help in understanding and solving the problem.
Development environment:
Datalens-ui version: latest and 0.795.0
Datalens-us version: latest and 0.96.0
Browser/OS: Mozilla Firefox/Ubuntu
Docker version: 24.0.5, build 24.0.5-0ubuntu1~22.04.1

We greatly appreciate your assistance in resolving this issue.

@RoadToRaichu RoadToRaichu changed the title Displaying 500 and 400 Errors on Datalens Displaying 500 Errors on Datalens Dec 26, 2023
@Marginy605
Copy link
Contributor

Hi, thanks for report!
There is an architectural feature that if user is editing dashboard right now, you get warning that the same dashboard has been already edited by someone (even if is is the same user):
image

So if you are ignoring this warning and you want to force edit anyway, that means that editing in first tab is invalid. We don't have any possibility to merge changes somehow for both edited versions. That's why editor in first tab receive error on save.

We will improve this case so that first editor could receive some message that this dash has been already edited by someone and this changes could not be saved on old version of dashboard.

@Marginy605 Marginy605 added the enhancement New feature or request label Dec 28, 2023
@Marginy605 Marginy605 self-assigned this Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants