Closed as not planned
Closed as not planned
Description
CLI Version
sentry-cli 2.45.0
Operating System and Architecture
- macOS (arm64)
- macOS (x86_64)
- Linux (i686)
- Linux (x86_64)
- Linux (armv7)
- Linux (aarch64)
- Windows (i686)
- Windows (x86_64)
Operating System Version
ubuntu 22.04
Link to reproduction repository
No response
CLI Command
sentry-cli send-envelope 20250514055208474932.json
Exact Reproduction Steps
I used customhttp that replaces the default one, and saved in with envelope.serialize_into
into file, not all files are affected
Just save this to a json file and replace PUBLIC_KEY in it, then run cli command to get the error
{"event_id":"1b572e2d5b7344c485ad0a4a2c8714d5","sent_at":"2025-05-14T06:24:50.259499Z","trace":{"trace_id":"3ca5433f17cf451b89b907cc436c7ecd","environment":"staging","public_key":"PUBLIC_KEY","transaction":"a","sample_rate":"0.5","sampled":"true"}}
{"type":"transaction","content_type":"application/json","length":2150}
{"type":"transaction","transaction":"a","transaction_info":{"source":"component"},"contexts":{"response":{"status_code":200},"trace":{"trace_id":"3ca5433f17cf451b89b907cc436c7ecd","span_id":"bb2e53ef0b9acc57","parent_span_id":null,"op":"http.server","description":null,"origin":"auto.http.flask","status":"ok","data":{"thread.id":"139648280012352","thread.name":"ThreadPoolExecutor-0_0","http.response.status_code":200}},"runtime":{"name":"CPython","version":"3.10.12","build":"3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0]"}},"tags":{"http.status_code":"200"},"timestamp":"2025-05-14T06:24:50.257227Z","start_timestamp":"2025-05-14T06:24:50.089881Z","spans":[{"trace_id":"3ca5433f17cf451b89b907cc436c7ecd","span_id":"afe047658d30db29","parent_span_id":"bb2e53ef0b9acc57","same_process_as_parent":true,"op":"db.redis","description":"-","tags":{"redis.is_cluster":false,"redis.command":"GET","db.operation":"GET","redis.key":"-"},"data":{"thread.id":"139648280012352","thread.name":"ThreadPoolExecutor-0_0","db.system":"redis","db.name":"1","server.address":"localhost","server.port":2131}}],"measurements":{},"event_id":"1b572e2d5b7344c485ad0a4a2c8714d5","extra":{"sys.argv":["python3","test.py"]},"request":{"url":"http://127.0.0.1/a","method":"GET"},"headers":{"Content-Type":"application/json","Content-Length":"2","X-Forwarded-For":"","X-Forwarded-Proto":"https","Host":"127.0.0.1","User-Agent":"python-requests/2.31.0","Accept-Encoding":"gzip, deflate","Accept":"*/*","Authorization":"[Filtered]"},"data":{}},"environment":"-","server_name":"-","sdk":{"name":"sentry.python.flask","version":"2.12.0","packages":[{"name":"pypi:sentry-sdk","version":"2.12.0"}],"integrations":["aiohttp","argv","asyncpg","atexit","dedupe","excepthook","flask","logging","loguru","modules","pymongo","redis","sqlalchemy","stdlib","threading"]},"platform":"python","_meta":{"spans":{"0":{"tags":{"redis.key":{"":{"len":1184,"rem":[["!limit","x",1021,1024]]}}}},"9":{"tags":{"redis.key":{"":{"len":1184,"rem":[["!limit","x",1021,1024]]}}}}},"request":{"headers":{"X-Forwarded-For":{"":{"rem":[["!config","x"]]}},"Authorization":{"":{"rem":[["!config","s"]]}}}}}}
Expected Results
Don't fail when sending an envelope
Actual Results
fails to send
Logs
DEBUG 2025-05-14 06:46:24.383406293 +00:00 sentry-cli version: 2.45.0, platform: "linux", architecture: "x86_64"
INFO 2025-05-14 06:46:24.384535307 +00:00 sentry-cli was invoked with the following command line: "sentry-cli" "send-envelope" "20250514062450284788.json" "--log-level=debug"
error: invalid item payload
Caused by:
invalid type: boolean `false`, expected a string at line 1 column 873
INFO 2025-05-14 06:46:24.385035328 +00:00 Skipping update nagger update check
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Waiting for: Product Owner