Sentry MCP: get_event_attachment returns an empty body — download fails schema validation, and listing reports SHA1 of the empty string for every attachment
Maintainer thường phản hồi trong vòng 1 ngày
@BYK đang làm issue này rồi.
Từ ngày 26/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
Reproduced on org daniels-sentry-org1 / project javascript-vue-test (EU, https://de.sentry.io),
event 8c365db20f0845c3a71315a943205d83, with two attachments of known content:
| File | Size | Actual SHA1 |
|---|---|---|
one.log (id 858188125) |
540 B | 223522016c9ef121e912f2462f7f15e22d6e5399 |
two.log (id 858188126) |
1539 B | 972cc32bff5f16e2891303fe8907e0008931fbfc |
- Send an event with two attachments of different content/size.
- List them — omit
attachmentId:
get_event_attachment(organizationSlug='daniels-sentry-org1', projectSlug='javascript-vue-test', eventId='8c365db20f0845c3a71315a943205d83') - Download one — pass
attachmentId='858188125'. - Confirm in the Web UI (Issue → Attachments) that both files download intact.
Reproduces with and without explicit regionUrl, on every attachment, across a client restart + connector reconnect.
Expected Result
Step 3 returns the file content as a valid MCP content block. Step 2 reports each attachment's real, distinct SHA1.
Actual Result
- Download fails every content-block union branch:
MCP error -32602: Invalid tools/call result: [{
"code": "invalid_union", "path": ["content", 0],
"errors": [
["type" expected "text", "text" expected string received undefined],
["type" expected "image", "data"/"mimeType" expected string received undefined],
["type" expected "audio", "data"/"mimeType" expected string received undefined],
["name"/"uri" expected string, "type" expected "resource_link"],
["resource": ["_meta" expected record received null,
"text"/"blob" expected string received undefined]]
]}]
text/blob/data are all undefined — the response has no content.
2. Listing reports SHA1 of zero bytes for every attachment:
one.log Size: 540 bytes SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709
two.log Size: 1539 bytes SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709
That value is SHA1 of empty input (printf '' | shasum -a 1). Note Size is correct while the SHA1 is of nothing — so metadata resolves fine but the body is empty by hashing time. Likely one root cause for both symptoms: the fetch yields zero bytes, so the connector hashes an empty buffer and builds a content block with no data.
3. Separate defect — _meta: null: the resource branch also fails with "_meta" expected record, received null, independently of the missing body. Fixing the download may not fix this.
Web UI is unaffected — the same attachments download intact, so the stored blobs are fine; the fault is in the connector.
Not tenant-specific — originally reported by a customer on a different org; reproduced independently here on a separate org/project with freshly created attachments.
Product Area
Settings - Integrations
Link
https://daniels-sentry-org1.sentry.io/issues/?query=8c365db20f0845c3a71315a943205d83
DSN
daniels-sentry-org1
Version
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 938
- Fork
- 166
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 156
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/toolkit
-
bug MCP
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/toolkit#1600 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/toolkit#1471 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
getsentry/toolkit#1611 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement MCP
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 55/100
getsentry/toolkit#1601 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use typed detector schemas from @sentry/api for metric monitorsCó thể đã có người làm @MathurAditya724 đã nhận 1 ngày trước. Đang mở
getsentry/toolkit#1595 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/toolkit
Issue tương tự
-
area: image-engine bug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
snapotter-hq/SnapOtter#3885 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 3 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P3 UI/UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
openclaw/openclaw#182077 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày