-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Self-Hosted Gitlab with API-Token: 401 Unauthorized #40
Comments
Hey @addiks, I attempted to reproduce the problem locally using a private gitlab repository I have setup for testing Gitlab integration. Unfortunately, I don't get the same error message on my end. I've created a branch which I've instrumented \w http request debug information. Feel free to checkout that branch, build the release binaries via: # Requires go being installed
./release.sh <dst-dir> <version> Alternatively, if you're not into installing go & building from source, I've built a binary from that branch & uploaded it here. Could you try reproducing the issue with that version of the app & let me know if you're able to find the root cause? |
When I try to download the binary I am asked for a password for that file: "You need access, Ask for access, or switch to an account with access". I also tried to compile it from source, but got stuck on these error-messages: $ ./release.sh bin/ 0.2.0
main.go:10:2: cannot find package "github.com/preslavmihaylov/todocheck/authmanager" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/authmanager (from $GOROOT)
($GOPATH not set)
main.go:11:2: cannot find package "github.com/preslavmihaylov/todocheck/authmanager/authmiddleware" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/authmanager/authmiddleware (from $GOROOT)
($GOPATH not set)
main.go:12:2: cannot find package "github.com/preslavmihaylov/todocheck/checker/errors" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/checker/errors (from $GOROOT)
($GOPATH not set)
main.go:13:2: cannot find package "github.com/preslavmihaylov/todocheck/config" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/config (from $GOROOT)
($GOPATH not set)
main.go:14:2: cannot find package "github.com/preslavmihaylov/todocheck/fetcher" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/fetcher (from $GOROOT)
($GOPATH not set)
main.go:15:2: cannot find package "github.com/preslavmihaylov/todocheck/issuetracker" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/issuetracker (from $GOROOT)
($GOPATH not set)
main.go:16:2: cannot find package "github.com/preslavmihaylov/todocheck/traverser/todoerrs" in any of:
/usr/lib/go-1.6/src/github.com/preslavmihaylov/todocheck/traverser/todoerrs (from $GOROOT)
($GOPATH not set)
shasum: todocheck-0.2.0-windows-x86_64.exe:
can't load package: package .: no buildable Go source files in /home/gerrit/git/todocheck/bin
./release.sh: Zeile 21: cd: bin/: Datei oder Verzeichnis nicht gefunden
can't load package: package .: no buildable Go source files in /home/gerrit/git/todocheck/bin
./release.sh: Zeile 21: cd: bin/: Datei oder Verzeichnis nicht gefunden
can't load package: package .: no buildable Go source files in /home/gerrit/git/todocheck/bin
./release.sh: Zeile 21: cd: bin/: Datei oder Verzeichnis nicht gefunden
$ ( Since i'm really not proficient with go and a bit of research suggests that issues with GOPATH might be version-related (I'm on ubuntu 16.04, installing newer software can sometimes be non-trivial), I don't think that dumping more time into this will yield any results. |
Yeah, I didn’t consider that you’d have to setup the whole go toolchain. I gave you access to the file in gdrive. Try downloading that. |
The request is being sent to a completely different domain. It is talking to |
It seems to completely disregard the configured domain in my |
Ah yes, that is exactly the root cause. I will fix that & make a new patch. Thanks for reporting! |
This seems to be working for me. It does not crash (or stop?) anymore, correctly detects missing issues in our gitlab instance and hides the messages again if the issue exists in the tracker. Looks like everything is working fine now. |
When I try to run
todocheck
on our private gitlab instance (13.2.3
), I get the following failed result:When I try to manually fetch the issue-details from the gitlab-API using
curl
, I get this successful result:My
.todocheck.yaml
file:Why is
todocheck
unable to fetch the issue whilecurl
can, using the same access-token?Is there maybe some way to enable debugging and/or to see what exact HTTP(S) requests are being sent?
The text was updated successfully, but these errors were encountered: