Open bytehead opened 4 months ago
For me it works fine. Maybe you added the wrong gitlab host in the .env? @bytehead
ok, a little hope at least :) but no, the gitlab host seems to be correct, https://gitlab.com.
Hi @bytehead To replicate your issue, I just set in my .env a wrong personnal token Maybe you just have to generate a new one https://gitlab.com/-/user_settings/personal_access_tokens
I also run into some several minor bug so I just push an update to upgrade the GitBeaker library
I'm gonna try it again π
I don't get it π
Just regenerated a token (even) with api
scope - still getting GitbeakerRequestError: Unauthorized
.
Any ideas to debug?
@bytehead another dependencies update, but I still have no clue about your error and how to replicate it.
I created an account on https://gitlab.com/ and even there it works for me with a new generated token.
@nis267 With an organization?
# Group ID to search in
# default search in all groups
GROUP_ID=
In my case it gives me this GitbeakerRequestError: Unauthorized
error in both cases, with a GROUP_ID
and without. π
My env looks like this with my token hidden with x's
GITLAB_HOST=https://gitlab.com GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxx SEARCH_DELAY=6000 SEARCH_FILE_PATTERN=* SEARCH_KEYWORD=test GROUP_ID=
And are you sure that you don't have gitlab self hosted? Then the host is different than https://gitlab.com
here is my .env
:
GITLAB_HOST=https://gitlab.com
GITLAB_TOKEN=glpat-xxx
# pause time in ms between search api call (6000 is recommanded on official Gitlab instance)
SEARCH_DELAY=6000
# File pattern filter (eg. *.php)
SEARCH_FILE_PATTERN=*
# string to find
SEARCH_KEYWORD=test
# Group ID to search in
# default search in all groups
GROUP_ID=
Hi there ππΌ
I followed the README but somehow my token is always shown as invalid.
I tried with other libraries to make requests to the API and the token is considered valid there. Don't know what I'm missing here? Any ideas? Is the underlaying library broken (gitbeaker)?