vectordotdev/vector · error
Response failed.
Error message
Response failed.
What it means
In Vector's sink driver (src/sinks/util/sink.rs), when the service reports EventStatus::Rejected the code emits the stored error from the failed request; if no error was captured, the fallback literal "Response failed." is used and a CallError internal event is logged. It means the sink gave up retrying and the batch of events was rejected/dropped by the upstream service.
Solutions
- Check Vector's internal logs/metrics around the CallError event for the request_id and sink name to find earlier retry errors that show the real cause
- Validate credentials, endpoint URL, and payload encoding against the target service (e.g. curl the same API with an equivalent payload)
- Enable debug logging (VECTOR_LOG=debug) to capture the per-attempt error emitted before rejection
- If your sink maps all 4xx to rejection unintentionally, review the sink's retry/reject classification logic and adjust retry: settings
Example fix
// before
sinks:
http:
endpoint: https://example.internal/api # 404 on every attempt -> rejected
// after
sinks:
http:
endpoint: https://example.internal/v1/events # correct, healthy endpoint
retry_attempts: 10 Defensive patterns
Strategy: try-catch
Validate before calling
// Before running the pipeline, sanity-check the sink endpoint:
curl -sS -o /dev/null -w '%{http_code}' "$ENDPOINT" | grep -E '^(2|429)' || echo "Endpoint rejecting requests; sink may drop events after retries" Try / catch
vector::internal_events::CallError is an internal event, not an exception. Subscribe to it: // tail logs filtered to CallError and alert on occurrences tail -f vector.log | grep --line-buffered 'CallError' | while read line; do alert_dropped_events "$line"; done
Prevention
- Monitor Vector's component_errors_total and events_dropped metrics per sink
- Keep retry: max_attempts and backoff settings sized for transient outages
- Test sink credentials/endpoints in CI with a canary event
- Pin API versions of the destination service to avoid 4xx contract changes
When it happens
Trigger: A sink's service layer marks an EventStatus::Rejected after exhausting retries on HTTP responses the sink maps to rejection (e.g. persistent 4xx responses), while the response's error extraction produced None, so only the generic message remains in the CallError event.
Common situations: Destination API permanently rejecting payloads (bad API key, quota exhausted, malformed events the service flags as unprocessable), network/proxy gateways returning 4xx for every attempt, or misconfigured endpoint URLs; events are dropped after retries.
Understand the failure class
Background: "API error: {status}" and "HTTP 401/403/404/429/5xx" errors: non-2xx HTTP responses explained — this error's family across 27 libraries.
Related errors
- a valid HTTP/1 URI is valid as an HTTP URI
- a validated HTTP endpoint is a valid `http 1` URI
- building HTTP request failed unexpectedly
- Building request never fails.
- {}
AI-assisted analysis of vectordotdev/vector@bdb87aeaa4 (2026-09-16).
Data as JSON: /api/errors/889fb861a7904263.
Report an issue: GitHub.
Appendix: source
Thrown at src/sinks/util/sink.rs:459
message = "Submitting service request.",
in_flight_requests = self.in_flight.len()
);
let events_sent = register!(EventsSent::from(Output(None)));
self.service
.call(items)
.err_into()
.map(move |result| {
let status = result_status(&result);
finalizers.update_status(status);
match status {
EventStatus::Delivered => {
events_sent.emit(CountByteSize(count, json_byte_size));
// TODO: Emit a BytesSent event here too
}
EventStatus::Rejected => {
// Emit the `Error` and `EventsDropped` internal events.
// This scenario occurs after retries have been attempted.
let error = result.err().unwrap_or_else(|| "Response failed.".into());
emit!(CallError {
error,
request_id,
count,
});
}
_ => {} // do nothing
}
// If the rx end is dropped we still completed
// the request so this is a weird case that we can
// ignore for now.
_ = tx.send(());
})
.instrument(info_span!("request", %request_id).or_current())
.boxed()
}
View on GitHub (pinned to bdb87aeaa4)