Latest Artifacts API returns empty list

artifacts

#1

I can see the artifact of the latest build from master branch in circleci UI but “latest artifacts” API always returns empty list.

This API call returns empty list.
https://circleci.com/api/v1.1/project/github/user/project/latest/artifacts?circle-token=123456789&branch=master

But if I use latest build number and call “/:build_num/artifacts” API, it returns the correct artifact.

https://circleci.com/api/v1.1/project/github/user/project/320/artifacts?circle-token=123456789

The above API works fine by pulling the latest artifact using build number.

What could be the issue?


#2

I’m not able to reproduce this

https://circleci.com/api/v1.1/project/github/drazisil/junit-merge/389/artifacts

https://circleci.com/api/v1.1/project/github/drazisil/junit-merge/latest/artifacts?&branch=master

Can you open a ticket with the details of the project (and what type of token you are using) so we can take a look?