Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

search_events returns HTTP 404 while search_issues + search_issue_events succeed (mcp.sentry.dev hosted)

Đang mở
#937 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

Bắt đầu từ điểm vào của công cụ search_events và theo dõi quá trình xây dựng URL REST của Sentry, đối chiếu với các đường dẫn đang hoạt động search_issues và search_issue_events. Tái hiện các lệnh gọi được liệt kê tới máy chủ được lưu trữ, sau đó xác minh rằng search_events tiếp cận một endpoint hợp lệ và trả về dữ liệu sự kiện mong đợi hoặc số lượng tổng hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment

  • Server: Hosted remote MCP server at https://mcp.sentry.dev/mcp
  • Client: Claude Code (OAuth)
  • Organization: info618 (region: us.sentry.io)
  • Project: b2m-hub
  • Date observed: 2026-05-07

Symptom

search_events consistently returns HTTP 404: API request failed: Not Found regardless of parameters. The other AI-agent-backed tools (search_issues, search_issue_events) work fine against the same org/project, which makes this distinct from prior outages where the embedded agent failed for all three together.

Affected tool

  • ❌ search_events — HTTP 404 from Sentry REST API on every call

Working tools (verified in same session, same org)

  • ✅ whoami
  • ✅ find_organizations (returns info618, regionUrl https://us.sentry.io)
  • ✅ find_projects (returns b2m-hub)
  • ✅ search_issues — returns 17 unresolved issues with full metadata
  • ✅ search_issue_events — returns full event list with stacktrace, tags, geo
  • ✅ get_sentry_resource (resourceType=issue) — returns full issue + first event detail

Steps to reproduce

All four variations below return the same 404:

  1. Explicit dataset + Sentry-syntax query, no project

    search_events(
      organizationSlug='info618',
      regionUrl='https://us.sentry.io',
      dataset='errors',
      query='level:error',
      statsPeriod='24h',
      limit=5
    )
    
  2. Explicit dataset + project

    search_events(
      organizationSlug='info618',
      regionUrl='https://us.sentry.io',
      projectSlug='b2m-hub',
      dataset='errors',
      query='level:error',
      statsPeriod='24h',
      limit=5
    )
    
  3. Natural-language query

    search_events(
      organizationSlug='info618',
      regionUrl='https://us.sentry.io',
      query='how many errors today',
      limit=5,
      includeExplanation=true
    )
    
  4. No regionUrl

    search_events(
      organizationSlug='info618',
      dataset='errors',
      query='level:error',
      statsPeriod='24h',
      limit=5
    )
    

Expected

Either an aggregate count (for natural-language) or a list of error events (for explicit dataset query), as documented in the tool description.

Actual

**Input Error**

There was an HTTP 404 error with your request to the Sentry API.

API error (404): API request failed: Not Found
. Please verify the parameters are correct.

You may be able to resolve the issue by addressing the concern and trying again.

Why this is distinct from prior incidents

Issue Symptom Our case
#779 OpenAI key invalidated → all 3 search tools fail search_issues works for us
#776 "No object generated: could not parse the response" We get 404 from Sentry REST, not a parse error
#748/#749 Cloudflare→OpenAI region block → "Country, region, or territory not supported" search_issues uses the same agent layer and works for us
#553 Agent generates incorrect aggregation queries We get 404 even on simple level:error Sentry-syntax queries that should bypass aggregation logic

The fact that search_issues succeeds rules out an agent-layer outage. The 404 is coming from the downstream Sentry REST call (likely /api/0/organizations/info618/events/), suggesting the URL search_events constructs is invalid for this org while the URL search_issues constructs is valid.

Adjacent unrelated bug observed

Earlier in the same session, search_docs returned HTTP 400: Invalid request on simple queries (e.g., query='Discover events API plan tier requirement', maxResults=3). Probably worth a separate triage.

Notes

  • Sentry org has 17 unresolved issues right now — plenty of error data exists for search_events to return.
  • search_issue_events against B2M-HUB-4R returned 3 detailed events including stacktraces — confirming the events dataset itself is reachable for this org.
  • Repro is 100% — 4 distinct call shapes, all 404.
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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/toolkit

Tất cả issue của getsentry/toolkit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.