Collector Inventory Failures due to Request Timeouts and 5xx Responses
search cancel

Collector Inventory Failures due to Request Timeouts and 5xx Responses

book

Article ID: 432632

calendar_today

Updated On:

Products

VMware Tanzu Platform - Hub

Issue/Introduction

Cloud Foundry inventory collections may fail when the collector encounters intermittent high-latency requests or server-side errors. Specifically, the collector has been observed to fail during the v3/spaces or similar API calls with the error:

net/http: request canceled (Client.Timeout exceeded while awaiting headers).

Currently, the collector lacks a robust retry mechanism for:

  • Request Timeouts: Where the client-side timeout (5 min) is reached without a response.
  • 5xx Server Errors: Non-2xx response statuses that indicate transient server-side pressure or unavailability.

Cause

Lack of retry logic in the collector for specific failure modes. While the collector currently retries on EOF (connection closed) errors, it does not automatically retry when a request times out or receives a server-side error.

Resolution

This will be fixed in a future release of Tanzu Hub.