-
Notifications
You must be signed in to change notification settings - Fork 341
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
cml comment create error on GitLab #1328
Comments
👋 were you able to try as suggested in discord the api endpoint to see if it works? curl -v -H "Authorization: Bearer $REPO_TOKEN" https://gitlab-aic.dynu.com/api/v4/version As I stated the problem is the access to your self hosted gitlab instance |
Yes, I tried according to suggestion and the API endpoint is working well. |
@0x2b3bfa0 passed to me @l-kuo |
Context: as per discord#cml/1069545494277279845, the API endpoint is working correctly. $ curl -v -H "Authorization: Bearer [MASKED]" https://gitlab-aic.dynu.com/api/v4/version
{"version":"...","revision":"...", ..., "enterprise":true} |
Is the
|
This comment was marked as outdated.
This comment was marked as outdated.
Can you please run this and send us the output? curl -v -H "Authorization: Bearer $REPO_TOKEN" https://$HOST/api/v4/projects/$PROJECT/repository/commits/$COMMIT_HASH/merge_requests/ |
I sent it via discord message sir, thanks. |
@0x2b3bfa0 - could you add the sanitized report to the issue? |
@l-kuo is using GitLab Enterprise Edition 15.6.1 Using the project's percent-encoded normalized slug 🚫
{"error":"404 Not Found"} Using the project's numeric identifier ✅
{...} |
The actual project and group names don't seem to have nothing to do with this issue, but the following API responses I got from local testing might shed some light over the issue: Numeric identifiers
{...}
{"message":"404 Project Not Found"} Slugs
{...}
{"message":"404 Project Not Found"} Malformed (slash not encoded)
{"error":"404 Not Found"}
{"error":"404 Not Found"} |
If some misconfigured proxy is turning url-encoded slashes into literal slashes, the URL suggested in #1328 (comment) should succeed. |
Yes, it showed up {"message":"404 Project Not Found"}. |
@l-kuo, can you please confirm that #1328 (comment) is accurate?
Note the difference between |
Yes, this is absolutely correct response I got. |
@l-kuo, what output do you get after percent-encoding the whole repository slug? Example: if the original URL is https://host/api/v4/projects/group%2Fproject, try https://host/api/v4/projects/%67%72%6f%75%70%25%32%46%70%72%6f%6a%65%63%741 instead. Footnotes
|
I got this output: {"message":"404 Project Not Found"} |
Please see the error logs below.
The above is my debug log.
Anyway, all the cml command are resulting in the same error. FYI, I am using custom built image with installed dvc and cml package. DVC is working fine but not cml part.
The text was updated successfully, but these errors were encountered: