Source upload using sentry-cli do not work - missing endpoint PUT /api/0/projects/<project>/web/releaeses/<id>/

Review this checklist before submitting.

  • GitLab issues are for bug reports and feature requests. If this is a help request, post on Gitter. If you have or want paid support, please use the chat widget on https://glitchtip.com.
  • Document reproduction steps. Be as detailed as possible.
  • If applicable, try to reproduce the problem on https://app.glitchtip.com
  • Be considerate of the reviewer of your issue and their time. They are likely unpaid. GlitchTip is open source and comes with absolutely no warranty.
  • Check existing issues first. 👍 the issue to show interest.
  • Do not open issue related to automated security scanners or other static anaysis tool. We use Renovate and GitLab for this. Instead, ask on Gitter how you can help get involved in the project and make the changes you wish to see.

Description

I am trying to upload source-maps for a Javascript project using sentry-cli (version 2.33.1)

This is the error I am getting, I guess there is an endpoint missing:

PUT https://app.glitchtip.com/api/0/projects/fff/web/releases/ff421d69a5924f3dbea6badccc763807/

[sentry-debug-id-upload-plugin] Command failed: /Users/cinemast/git/zeitkapsl/server/ui/web/node_modules/@sentry/cli-darwin/bin/sentry-cli releases finalize ff421d69a5924f3dbea6badccc763807
  INFO    2024-08-22 10:47:56.711537 +02:00 Loaded config from /Users/cinemast/git/zeitkapsl/server/ui/web/.sentryclirc
  DEBUG   2024-08-22 10:47:56.711661 +02:00 sentry-cli version: 2.33.1, platform: "darwin", architecture: "arm64"
  INFO    2024-08-22 10:47:56.712114 +02:00 sentry-cli was invoked with the following command line: "/Users/cinemast/git/zeitkapsl/server/ui/web/node_modules/@sentry/cli-darwin/bin/sentry-cli" "releases" "finalize" "ff421d69a5924f3dbea6badccc763807"
  DEBUG   2024-08-22 10:47:56.712347 +02:00 request PUT https://app.glitchtip.com/api/0/projects/fff/web/releases/ff421d69a5924f3dbea6badccc763807/
  DEBUG   2024-08-22 10:47:56.712357 +02:00 pipeline: vite-plugin/2.22.0
  DEBUG   2024-08-22 10:47:56.712363 +02:00 using token authentication
  DEBUG   2024-08-22 10:47:56.712380 +02:00 json body: {"projects":["web"],"dateReleased":"2024-08-22T08:47:56.712320Z"}
  DEBUG   2024-08-22 10:47:56.712386 +02:00 retry number 0, max retries: 0
  DEBUG   2024-08-22 10:47:56.755273 +02:00 > PUT /api/0/projects/fff/web/releases/ff421d69a5924f3dbea6badccc763807/ HTTP/1.1
  DEBUG   2024-08-22 10:47:56.755289 +02:00 > Host: app.glitchtip.com
  DEBUG   2024-08-22 10:47:56.755293 +02:00 > Accept: */*
  DEBUG   2024-08-22 10:47:56.755297 +02:00 > Connection: TE
  DEBUG   2024-08-22 10:47:56.755300 +02:00 > TE: gzip
  DEBUG   2024-08-22 10:47:56.755303 +02:00 > User-Agent: sentry-cli/2.33.1 vite-plugin/2.22.0
  DEBUG   2024-08-22 10:47:56.755677 +02:00 > Authorization: Bearer a622b3e4***
  DEBUG   2024-08-22 10:47:56.755684 +02:00 > Content-Type: application/json
  DEBUG   2024-08-22 10:47:56.755687 +02:00 > Content-Length: 65
  DEBUG   2024-08-22 10:47:56.925241 +02:00 < HTTP/1.1 405 Method Not Allowed
  DEBUG   2024-08-22 10:47:56.925361 +02:00 < Date: Thu, 22 Aug 2024 08:47:56 GMT
  DEBUG   2024-08-22 10:47:56.925394 +02:00 < Content-Type: text/html; charset=utf-8
  DEBUG   2024-08-22 10:47:56.925437 +02:00 < Transfer-Encoding: chunked
  DEBUG   2024-08-22 10:47:56.925460 +02:00 < Connection: keep-alive
  DEBUG   2024-08-22 10:47:56.925491 +02:00 < allow: GET, DELETE
  DEBUG   2024-08-22 10:47:56.925512 +02:00 < vary: Accept-Language, origin
  DEBUG   2024-08-22 10:47:56.925531 +02:00 < content-language: en
  DEBUG   2024-08-22 10:47:56.925548 +02:00 < x-frame-options: DENY

Proposed Solution(s)

  • I think a dummy endpoint could just be placed there returning 200, handling the dateReleased update.
  • Is there maybe an older version of sentry-cli that does work?