Spectrum - Unable to pull inventory via API
search cancel

Spectrum - Unable to pull inventory via API

book

Article ID: 453722

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

When pulling the inventory through API, some Landscapes are not providing any data

Environment

25.x

Cause

 The API client (e.g., Perl/Net::HTTP) times out because the OneClick server requires more time to build and transmit the XML response than the client's configured timeout allows

Resolution

  1. Increase Client Timeout: Configure the HTTP client (e.g., Net::HTTP or LWP::UserAgent in Perl) to use a timeout of at least 600 seconds.
  2. Implement Pagination: Use throttlesize and start parameters in the REST API request. Reduce the throttle size (e.g., 250–500) to ensure individual batches complete within the timeout window.