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

[Bug][Devlake] Can't edit scope config (TypeError: Cannot read properties of null (reading 'map')) #6005

Closed
2 of 3 tasks
klemen-df opened this issue Sep 1, 2023 · 17 comments · Fixed by #6293
Closed
2 of 3 tasks
Assignees
Labels
type/bug This issue is a bug

Comments

@klemen-df
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I can't edit a scope config, I get an error

image

Must be a frontend thing, can't seem to find anything in the error logs.

What do you expect to happen

Window for changing scope config should open.

How to reproduce

--> Projects
--> Detail of your project (gear icon)
--> Edit Data Scope and Scope Config
--> Button 'Edit Scope Config'
--> Select your scope config and click button 'Associate Scope Config'
--> Select your scope config and click the edit icon (pencil)

Error is displayed :

TypeError: Cannot read properties of null (reading 'map')

Anything else

Every time.

Version

v0.18-beta8

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@klemen-df klemen-df added the type/bug This issue is a bug label Sep 1, 2023
@mintsweet mintsweet self-assigned this Sep 12, 2023
@mintsweet
Copy link
Member

Hi @KlemenDanfoss, thank you for your report.
Could you please provide a screenshot of the browser console?

@klemen-df
Copy link
Author

@mintsweet , sadly nothing more than this

image

@mintsweet
Copy link
Member

@KlemenDanfoss Thank you, can I ask what plugin it is?

@klemen-df
Copy link
Author

@KlemenDanfoss Thank you, can I ask what plugin it is?

Azure devops

@mintsweet
Copy link
Member

@KlemenDanfoss Thank you, I will try to reproduce it today.

@MarcViola
Copy link

Seeing the same error with gitlab.

@aaj23
Copy link

aaj23 commented Sep 26, 2023

Seeing the same issue with GitHub after upgrade to 0.18.0, wasn't doing it prior; Jira show's my scope config from prior but it doesn't appear in the list to edit (maybe unrelated).

@MarcViola
Copy link

I replied earlier that I couldn't see the problem on 0.19.0-beat2 but I do see it. I have to revert back to version 0.17 because I need access to that screen.

@MarcViola
Copy link

Hi @mintsweet, do you need more information to resolve this issue? Is there any workaround we can use in the mean time?
I tried 0.19.0-beta3 and it still has the problem.

Thanks.

@mintsweet
Copy link
Member

Hi @MarcViola, can you provide the last api screenshot about this error?

You can find it in brower devtool network. Thank you.

@MarcViola
Copy link

MarcViola commented Oct 12, 2023

Connections -> gitlab -> -> Details -> Associate scope config -> Edit

image

image

image

@mintsweet
Copy link
Member

OK, @MarcViola, thank you for your information, I'll try to reproduce it today.

@mintsweet
Copy link
Member

Hi, @MarcViola it's a pity that I tried to reproduce it again today, but it still failed. If possible, please provide a screen recording to help me troubleshoot it. Thank you

@MarcViola
Copy link

@mintsweet Unfortunately I'm not allowed to record the screen. Here's the docker logs when I reproduce the problem.

devlake_1    | [GIN] 2023/10/18 - 14:00:32 | 200 |      33.761µs |      172.30.0.6 | GET      "/version"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /api/version HTTP/1.0" 200 28 "https://devlake-dev.---/projects/NPE-Data_Collection_Engine?tab=configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /api/version HTTP/1.1" 200 28 "https://devlake-dev.---/projects/NPE-Data_Collection_Engine?tab=configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
devlake_1    | [GIN] 2023/10/18 - 14:00:32 | 200 |      50.429µs |      172.30.0.6 | GET      "/userinfo"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /api/userinfo HTTP/1.0" 200 37 "https://devlake-dev.---/projects/NPE-Data_Collection_Engine?tab=configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /api/userinfo HTTP/1.1" 200 37 "https://devlake-dev.---/projects/NPE-Data_Collection_Engine?tab=configuration" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-122ec8cd.svg HTTP/1.0" 200 2055 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-122ec8cd.svg HTTP/1.1" 200 2055 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-757830f0.svg HTTP/1.0" 200 1369 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-757830f0.svg HTTP/1.1" 200 1369 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-cd09dded.svg HTTP/1.0" 200 1672 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-4449371c.svg HTTP/1.0" 200 3812 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-cd09dded.svg HTTP/1.1" 200 1672 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-4449371c.svg HTTP/1.1" 200 3812 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-776b854a.svg HTTP/1.0" 200 4019 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-776b854a.svg HTTP/1.1" 200 4019 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-8f6f1fe0.svg HTTP/1.0" 200 1788 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-8f6f1fe0.svg HTTP/1.1" 200 1788 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-1ab86e04.svg HTTP/1.0" 200 3389 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-1ab86e04.svg HTTP/1.1" 200 3389 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-973e1a75.svg HTTP/1.0" 200 2570 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-973e1a75.svg HTTP/1.1" 200 2570 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-44d7c57e.svg HTTP/1.0" 200 1659 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-37b7c865.svg HTTP/1.0" 200 3372 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-50f02a05.svg HTTP/1.0" 200 1299 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-37b7c865.svg HTTP/1.1" 200 3372 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-44d7c57e.svg HTTP/1.1" 200 1659 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:32 +0000] "GET /assets/icon-50f02a05.svg HTTP/1.1" 200 1299 "https://devlake-dev.---/connections" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
devlake_1    | time="2023-10-18 14:00:39" level=info msg="path /plugins/gitlab/test will continue"
devlake_1    | time="2023-10-18 14:00:39" level=info msg="path /plugins/gitlab/connections/1/scopes will continue"
nginx_1      | 2023/10/18 14:00:39 [warn] 37#37: *56 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/4/00/0000000004 while reading upstream, client: 10.53.64.83, server: devlake-dev.---, request: "GET /api/plugins/gitlab/connections/1/scopes?blueprints=true&page=1&pageSize=10 HTTP/1.1", upstream: "http://172.30.0.6:4000/api/plugins/gitlab/connections/1/scopes?blueprints=true&page=1&pageSize=10", host: "devlake-dev.---", referrer: "https://devlake-dev.---/connections/gitlab/1"
devlake_1    | [GIN] 2023/10/18 - 14:00:39 | 200 |   92.196279ms |      172.30.0.6 | GET      "/plugins/gitlab/connections/1/scopes?blueprints=true&page=1&pageSize=10"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:39 +0000] "GET /api/plugins/gitlab/connections/1/scopes?blueprints=true&page=1&pageSize=10 HTTP/1.0" 200 812067 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:39 +0000] "GET /api/plugins/gitlab/connections/1/scopes?blueprints=true&page=1&pageSize=10 HTTP/1.1" 200 812294 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
devlake_1    | [GIN] 2023/10/18 - 14:00:39 | 200 |  596.939649ms |      172.30.0.6 | POST     "/plugins/gitlab/test"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:39 +0000] "POST /api/plugins/gitlab/test HTTP/1.0" 200 188 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:39 +0000] "POST /api/plugins/gitlab/test HTTP/1.1" 200 188 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
devlake_1    | time="2023-10-18 14:00:41" level=info msg="path /plugins/gitlab/connections/1/scope-configs will continue"
devlake_1    | [GIN] 2023/10/18 - 14:00:41 | 200 |    1.510395ms |      172.30.0.6 | GET      "/plugins/gitlab/connections/1/scope-configs"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:41 +0000] "GET /api/plugins/gitlab/connections/1/scope-configs HTTP/1.0" 200 5019 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:41 +0000] "GET /api/plugins/gitlab/connections/1/scope-configs HTTP/1.1" 200 5038 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
config-ui_1  | 172.30.0.3 - - [18/Oct/2023:14:00:44 +0000] "GET /api/plugins/gitlab/connections/1/scope-configs/4 HTTP/1.0" 200 426 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"
devlake_1    | time="2023-10-18 14:00:44" level=info msg="path /plugins/gitlab/connections/1/scope-configs/4 will continue"
devlake_1    | [GIN] 2023/10/18 - 14:00:44 | 200 |    1.017087ms |      172.30.0.6 | GET      "/plugins/gitlab/connections/1/scope-configs/4"
nginx_1      | 10.53.64.83 - - [18/Oct/2023:14:00:44 +0000] "GET /api/plugins/gitlab/connections/1/scope-configs/4 HTTP/1.1" 200 426 "https://devlake-dev.---/connections/gitlab/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60" "-"

@mintsweet
Copy link
Member

@MarcViola Sorry, this information is not enough to troubleshoot the issue, we can only continue to observe.

@klesh
Copy link
Contributor

klesh commented Oct 19, 2023

Hi, @MarcViola Can you take a screenshot of the response of the offending scopeConfig? like:
image
image

@abeizn
Copy link
Contributor

abeizn commented Oct 20, 2023

@KlemenDanfoss @MarcViola Fixed and released in beta6(https://github.com/apache/incubator-devlake/releases/tag/v0.19.0-beta6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug This issue is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants