Skip to content

getRepositoryFileApi.getFile couldn't return the content of file #1133

Open
@liangjunfeng123

Description

@liangjunfeng123
long projectId = 6;
String branch = "dev";
String readmePath = "README.md";
String appVuePath = "src/App.vue";

System.out.println(gitLabApi.getRepositoryFileApi().getFile(projectId, readmePath, branch, true));
System.out.println(gitLabApi.getRepositoryFileApi().getFile(projectId, appVuePath, branch, true));

It can return the content of README.md, but return 404 Not Found when it get the content of src/App.vue.
I am pretty sure that my gitlab has 'src/App.vue' in that project and that branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions