Skip to content
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

The api/v1/repos/owner/repos/raw/file always return 404 #426

Closed
HZ89 opened this issue Dec 20, 2016 · 4 comments
Closed

The api/v1/repos/owner/repos/raw/file always return 404 #426

HZ89 opened this issue Dec 20, 2016 · 4 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@HZ89
Copy link

HZ89 commented Dec 20, 2016

gitea log

2016/12/20 19:06:04 [...ules/context/repo.go:431 func1()] [E] RepoRef invalid repo: branch or tag not exist: refs/tags/v0.0.9/.drone.yml

but the file is exist

another debug log

[Macaron] 2016-12-19 20:05:13: Started GET /api/v1/repos/RPM_Builder/Youzu_RPMs/raw/refs/tags/v0.0.7/.drone.yml for 10.6.32.11
2016/12/19 20:05:13 [D] Session ID: baa92b60ead96381
2016/12/19 20:05:13 [D] CSRF Token: EFH7ydblUs6lrf4dWQiBukuE7Tw6MTQ4MjE0OTExMzcyOTI2Mjk0Mg==
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags/v0.0.7
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags/v0.0.7
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags/v0.0.7/.drone.yml
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags/v0.0.7/.drone.yml
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/heads/refs/tags/v0.0.7/.drone.yml
[git-module] /data/gitlab/ceph/gogs/rpm_builder/youzu_rpms.git: git show-ref --verify refs/tags/refs/tags/v0.0.7/.drone.yml
2016/12/19 20:05:13 [...ules/context/repo.go:431 func1()] [E] RepoRef invalid repo: branch or tag not exist: refs/tags/v0.0.7/.drone.yml
2016/12/19 20:05:13 [D] Template: status/404
@tboerger
Copy link
Member

Where do you get this URL from?

@tboerger
Copy link
Member

I will mark this issue for now as a bug, but I'm not sure if it really is...

@tboerger tboerger added this to the 1.0.0 milestone Dec 20, 2016
@HZ89
Copy link
Author

HZ89 commented Dec 20, 2016

i think it is same with #420

@tboerger
Copy link
Member

You are just calling the wrong URL, just drop refs/tags/ and it works, e.g. https://try.gitea.io/api/v1/repos/tboerger/test/raw/v1.0.0/README.md

@tboerger tboerger removed this from the 1.0.0 milestone Dec 20, 2016
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
@delvh delvh added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed reviewed/invalid labels Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

3 participants