-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Error 404 on RepositoryFiles.showRaw missing ref #1990
Comments
Yea the fix you mentioned should solve this. Ill whip up the PR at some point today! |
hmm this is weird, in the docs it still says its optional? https://docs.gitlab.com/ee/api/repository_files.html#get-raw-file-from-repository |
Yes, I see that... |
ah, hmm, Im really aiming to improve the version control for 14 going forward to avoid these kind of problems. Making it a required parameter would be a bit of a regression for now. I know its a pain, but the best move for you would probs just be passing the param to your logic like you did. I will add information for the supported gitlab version going forward though. I've been meaning to do this with #1592 |
Description
I use
@gitbeaker/browser
When using
RepositoryFiles.showRaw
, I receive a 404 error. The url is/projects/:id/repository/files/:file_path/raw
, when I try this url in Postman, I have this message :{"error": "ref is missing, ref is empty"}
, but if I add?ref=branch
, that's works !Steps to reproduce
Use
RepositoryFiles.showRaw
like :Expected behaviour
See the file
Actual behaviour
404 error
{"error": "ref is missing, ref is empty"}
Possible fixes
Add ref parameter to showRaw method on RepositoryFiles.ts file maybe like this :
The text was updated successfully, but these errors were encountered: