-
Notifications
You must be signed in to change notification settings - Fork 203
Cryptic error message when git is not available #1239
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
Comments
The underlying error is generated by go-git here. |
@makkes agree, thanks for prompt answer. Are there any chances for easy fix? |
This is an example message from GitLab:
The issue is that go-git only returns the first line of the message returned from the remote and in this case this line isn't very useful |
Hi, I started looking into it earlier and then got into something else. Getting back to it, looks like we have all the necessary clues about the problem above. In our go-git wrapper, we have a function that's specifically made to handle such errors |
In this case (GitLab apparently unavailable) the message "check git secret has write access" would be plain misleading. The I would much rather improve (and rename) the |
@makkes the handling of error descriptions from the server for |
Colleagues, any progress? Is there anything that I could test? |
I created a draft PR to mitigate this situation in go-git. /cc @pjbgf |
go-git PR has been merged so next up is bumping the go-git version as soon as a new version has been released. |
This will fix fluxcd/source-controller#1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
This will fix fluxcd/source-controller#1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
This will fix fluxcd/source-controller#1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
fixes #1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
fixes #1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
fixes #1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
fixes #1239 Signed-off-by: Max Jonas Werner <mail@makk.es>
Hi!
I got the next error message:
I am sure that in that very moment GitLab was not available, so it means network error. Unfortunately, it is completely opaque what happened from the error message.
My expectations: the error message will clearly state that git repo source is not available (due to network error).
The text was updated successfully, but these errors were encountered: