incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][Blueprints] 400 error when adding Azure DevOps scope to existing project

Open slaterx opened this issue 9 months ago • 10 comments

Search before asking

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

What happened

On a project with an existing github connection (such as #7503), adding an Azure DevOps connection to it gives a 400 error in the UI:

image

Inside lake microservice container, the error is the below:

time="2024-05-24 12:40:03" level=error msg="HTTP 400 error\n\tcaused by: error patching the blueprint (400)\n\tWraps: (2)\n\tWraps: (3) fork/exec ./run.sh: argument list too long\n\tWraps: (4) fork/exec ./run.sh\n\tWraps: (5) argument list too long\n\tError types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *hintdetail.withDetail (4) *fs.PathError (5) syscall.Errno"
[GIN] 2024/05/24 - 12:40:03 | 400 | 4.889660007s | 10.253.240.52 | PATCH "/blueprints/2"

What do you expect to happen

AzureDevops scopes are added to existing project.

How to reproduce

  • Create a project
  • Successfully add data scopes from GitHub
  • Try to add Azure DevOps scopes

Anything else

Same environment where #7503 is happening.

Version

1.0.0-beta6

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

slaterx avatar May 24 '24 00:05 slaterx