sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Author_email - Ensure this field has no more than 75 characters.

Open sakowicz opened this issue 9 months ago • 7 comments

CLI Version

2.32.1

Operating System and Architecture

  • [X] macOS (arm64)
  • [X] macOS (x86_64)
  • [X] Linux (i686)
  • [X] Linux (x86_64)
  • [X] Linux (armv7)
  • [X] Linux (aarch64)
  • [X] Windows (i686)
  • [X] Windows (x86_64)

Operating System Version

macOS 14.5

Link to reproduction repository

No response

CLI Command

sentry-cli releases set-commits XXX --local -p YYY --ignore-missing

Exact Reproduction Steps

  1. Create a commit with commit author email longer than 75 chars.
  2. Run sentry-cli releases set-commits XXX --local -p YYY --ignore-missing

Expected Results

Remove author_email field if it does not require sentry-api expectations (it is optional).

Actual Results

It doesn't send commits to sentry-api, because we get 400.

I wonder if we could remove author_email field if it does not require sentry-api expectations.

If not, can you help me solve the issue on my side? I've changed that email for future commits, but they will be in the history forever. I don't know how to push only newer commits.

Logs

  DEBUG   2024-05-29 08:04:27.462029 +02:00 body: {"commits":{"author_email":["Ensure this field has no more than 75 characters."]}}
error: API request failed
  caused by: sentry reported an error: request failure (http status: 400)
  Object {"commits": Object {"author_email": Array [String("Ensure this field has no more than 75 characters.")]}}

sakowicz avatar May 29 '24 06:05 sakowicz