'GitLab Get package with generic api get : "package_version is invalid"
I'm trying to use :
/projects/:id/packages/generic/:package_name/:package_version/:file_name
But got an
{"error:"package_version is invalid"}
This is the route call with token in header (of course)
"https://gitlab.com/api/v4/projects/<projectId>/packages/generic/test/api-test/0.0.1/api-test-0.0.1.war"
Solution 1:[1]
You are providing two packages names - one is test and another is api-test
Your solution is to provide only one package name named for example api-test like this.
"https://gitlab.com/api/v4/projects/<projectId>/packages/generic/api-test/0.0.1/api-test-0.0.1.war"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | airdata |
