-
Notifications
You must be signed in to change notification settings - Fork 208
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
GitLab Source Forbidden, even with API token #1622
Comments
This is actually weird, I have followed the source code to the point of creating my own curl request by the rules of the gitlab app_source and got a correct result, but havent been able to get Forbidden under any circumstances. |
Does the error show up when adding the repo or only when you try to actually install the app? Also keep in mind the error might be due to this: #1489 (comment) |
The error shows up only when adding the repository, but I dont think it is related to #1489 (comment) , because when I tried to construct the request in terminal (with the |
It's possible the headers might be different |
That could be interesting, because in Gitlab REST API documentation, the |
Well, after debugging, I found out that it fetched the releases correctly, but it fails when it tries to download the application (but it doesn't add the app to the list because of that). The Personal Access Token is used correctly when fetching the releases, but it isn't sent when the .apk file itself should be downloaded. The solution I think would be to use headers for this case, because that shouldn't break out the apk name resolution from the download url. |
Just tested the dev version and I was successfully able to install the app correctly. Once merged, this is ready to be closed! Thanks! |
Describe the bug
I have my private GitLab repository, and have made a Release with .apk files. After creating and setting up the GitLab Private Access Token and adding the repository url, it throws "Forbidden" error. The Personal Access Token had all permissions set. And I have that ensured i can download the apk files in web browser in the Releases on gitlab too.
To Reproduce
Screenshots and Logs
Logs just say
error: Forbidden
Please complete the following information:
The text was updated successfully, but these errors were encountered: