[Fix] 404 Not Found on /api/event_logging/batch endpoint - #20504
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryThis PR fixes 404 errors from Claude Code clients by adding a stubbed Key changes:
The new endpoint is lightweight and follows the existing pattern of stubbed endpoints. The implementation correctly avoids creating database objects or Router instances in the request path. Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| litellm/proxy/anthropic_endpoints/endpoints.py | Added stubbed /api/event_logging/batch endpoint to prevent 404 errors from Claude Code clients |
| litellm/proxy/proxy_server.py | Added _last_semantic_filter_config field to cache semantic filter configuration |
Sequence Diagram
sequenceDiagram
participant Client as Claude Code Client
participant Proxy as LiteLLM Proxy
participant Router as Anthropic Router
participant Endpoint as event_logging_batch
Client->>Proxy: POST /api/event_logging/batch
Note over Client: Sends telemetry data
Proxy->>Router: Route request
Router->>Endpoint: Handle event_logging_batch()
Note over Endpoint: Stubbed endpoint<br/>No processing
Endpoint-->>Router: {"status": "ok"}
Router-->>Proxy: Return response
Proxy-->>Client: 200 OK {"status": "ok"}
Note over Client: No 404 error
4 tasks
songkuan-zheng
added a commit
to GhishaDev/litellm
that referenced
this pull request
Jun 17, 2026
The proxy-infra component-allowlist test on this PR's CI was failing with /api/event_logging/batch missing from both gateway and backend allowlists. The route comes from upstream commit d2bd029 (PR BerriAI#20504), not from this PR's diff, but the union-coverage test fails on every fork PR that rebases onto internal_staging. Add the route to GATEWAY_EXACT_PATHS: it's a stub Anthropic event-logging endpoint that Claude Code clients hit as part of the /v1/messages data path (the endpoint's own docstring describes it as preventing 404s from Claude Code telemetry), so it belongs on the gateway component, not the control-plane backend. Drive-by because this PR's CI surfaced it; happy to extract to a separate PR if the maintainer prefers.
songkuan-zheng
added a commit
to GhishaDev/litellm
that referenced
this pull request
Jun 19, 2026
The proxy-infra component-allowlist test on this PR's CI was failing with /api/event_logging/batch missing from both gateway and backend allowlists. The route comes from upstream commit d2bd029 (PR BerriAI#20504), not from this PR's diff, but the union-coverage test fails on every fork PR that rebases onto internal_staging. Add the route to GATEWAY_EXACT_PATHS: it's a stub Anthropic event-logging endpoint that Claude Code clients hit as part of the /v1/messages data path (the endpoint's own docstring describes it as preventing 404s from Claude Code telemetry), so it belongs on the gateway component, not the control-plane backend. Drive-by because this PR's CI surfaced it; happy to extract to a separate PR if the maintainer prefers.
songkuan-zheng
added a commit
to GhishaDev/litellm
that referenced
this pull request
Jun 22, 2026
The proxy-infra component-allowlist test on this PR's CI was failing with /api/event_logging/batch missing from both gateway and backend allowlists. The route comes from upstream commit d2bd029 (PR BerriAI#20504), not from this PR's diff, but the union-coverage test fails on every fork PR that rebases onto internal_staging. Add the route to GATEWAY_EXACT_PATHS: it's a stub Anthropic event-logging endpoint that Claude Code clients hit as part of the /v1/messages data path (the endpoint's own docstring describes it as preventing 404s from Claude Code telemetry), so it belongs on the gateway component, not the control-plane backend. Drive-by because this PR's CI surfaced it; happy to extract to a separate PR if the maintainer prefers.
songkuan-zheng
added a commit
to GhishaDev/litellm
that referenced
this pull request
Jun 23, 2026
The proxy-infra component-allowlist test on this PR's CI was failing with /api/event_logging/batch missing from both gateway and backend allowlists. The route comes from upstream commit d2bd029 (PR BerriAI#20504), not from this PR's diff, but the union-coverage test fails on every fork PR that rebases onto internal_staging. Add the route to GATEWAY_EXACT_PATHS: it's a stub Anthropic event-logging endpoint that Claude Code clients hit as part of the /v1/messages data path (the endpoint's own docstring describes it as preventing 404s from Claude Code telemetry), so it belongs on the gateway component, not the control-plane backend. Drive-by because this PR's CI surfaced it; happy to extract to a separate PR if the maintainer prefers.
fzowl
pushed a commit
to fzowl/litellm
that referenced
this pull request
Jun 24, 2026
* fix typing * add event_logging_batch * TestEventLoggingBatchEndpoint
songkuan-zheng
added a commit
to GhishaDev/litellm
that referenced
this pull request
Jun 27, 2026
The proxy-infra component-allowlist test on this PR's CI was failing with /api/event_logging/batch missing from both gateway and backend allowlists. The route comes from upstream commit d2bd029 (PR BerriAI#20504), not from this PR's diff, but the union-coverage test fails on every fork PR that rebases onto internal_staging. Add the route to GATEWAY_EXACT_PATHS: it's a stub Anthropic event-logging endpoint that Claude Code clients hit as part of the /v1/messages data path (the endpoint's own docstring describes it as preventing 404s from Claude Code telemetry), so it belongs on the gateway component, not the control-plane backend. Drive-by because this PR's CI surfaced it; happy to extract to a separate PR if the maintainer prefers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Fix] 404 Not Found on /api/event_logging/batch endpoint
fixes: #19740
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🐛 Bug Fix
✅ Test
Changes