self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Can't get the project release files information as specified in the api documentation

Open korolziya opened this issue 1 month ago • 5 comments

Self-Hosted Version

25.8.0

CPU Architecture

x86_64

Docker Version

28.5.1

Docker Compose Version

2.40.2

Machine Specification

  • [x] My system meets the minimum system requirements of Sentry

Steps to Reproduce

I try to get a project release files. But the api does not return the response I expect ( https://docs.sentry.io/api/releases/list-a-projects-release-files/ ) . Api return 200 but the response is an empty array ( [] )

Requests I made.

fetch("http://{SELF_HOSTED_SENTRY}/api/0/organizations/sentry/releases/frame-app@9f119513/files/",{ headers: { 'Authorization': 'Bearer TOKEN' } }).then(res=>res.json()).then(data=>console.log(data)).catch(err=>console.error(err));

fetch("http://{SELF_HOSTED_SENTRY}/api/0/projects/sentry/frame-app/releases/frame-app@9f119513/files/",{ headers: { 'Authorization': 'Bearer TOKEN' } }).then(res=>res.json()).then(data=>console.log(data)).catch(err=>console.error(err));

Release's files:

Image

Ngnix Logs:

Image

Expected Result

I expect the return release'es file information as specified in the API documentaion.

Ex:

[ { "dateCreated": "2018-11-06T21:20:22.894Z", "dist": null, "headers": { "Content-Type": "text/plain; encoding=utf-8" }, "id": "3", "name": "/demo/goodbye.txt", "sha1": "94d6b21e962a9fc65889617ec1f17a1e2fe11b65", "size": 15 } ]

Actual Result

200 but empty array []

Event ID

No response

korolziya avatar Nov 14 '25 15:11 korolziya

I have a hunch that the version is wrong here. Can you try list your organization's releases first?

fetch(`https://{SELF_HOSTED_SENTRY}/api/0/organizations/sentry/releases/`, {
    method: "GET",
    headers: {
      'Authorization': 'Bearer TOKEN'
    }
  })
  .then(response => response.json())
  .then(data => {
    const selected = data.filter(each => each.project.find(project => project.name === "frame-app") != null);
    console.log(selected.map(release => ({
      version: release.version,
      shortVersion: release.shortVersion,
      dateCreated: release.dateCreated,
    })));
  })
  .catch(error => console.error(error));

aldy505 avatar Nov 16 '25 06:11 aldy505

I tried to get organizaton's releases.

Result: [ { dateCreated: "2025-11-14T06:35:08.368590Z" shortVersion: "frame-app@9f119513" version: "frame-app@9f119513" } ]

korolziya avatar Nov 17 '25 07:11 korolziya

Can you help me with this issue?

ramazankayis avatar Nov 21 '25 12:11 ramazankayis

Can you help me with this issue?

@ramazankayis Hi, what issue to be exact?

aldy505 avatar Nov 22 '25 00:11 aldy505

I tried to get organizaton's releases.

Result: [ { dateCreated: "2025-11-14T06:35:08.368590Z" shortVersion: "frame-app@9f119513" version: "frame-app@9f119513" } ]

@ZiyaKorol6 could it be that the @ character should be URL encoded?

aldy505 avatar Nov 22 '25 00:11 aldy505

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Dec 13 '25 08:12 getsantry[bot]