laravel:http-client-resilience

Configure timeouts, retries, and failure handling for Laravel HTTP requests.

1|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/meistro57/chat_bridge --skill laravel-http-client-resilience
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel:http-client-resilience
Source: https://github.com/meistro57/chat_bridge/tree/main/.claude/skills/http-client-resilience
Command: npx skills add https://github.com/meistro57/chat_bridge --skill laravel-http-client-resilience

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the unreliability of external HTTP API calls by implementing strategies for handling network issues, timeouts, and transient failures, ensuring more robust application behavior.

Core Features & Use Cases

  • Resilient HTTP Calls: Configure timeouts, automatic retries with backoff, and explicit failure handling for outbound requests.
  • Improved Observability: Capture detailed context from requests and responses, including status codes and bodies, for easier debugging.
  • Use Case: When your application needs to interact with a third-party service that might experience occasional downtime, this Skill ensures your requests are retried intelligently, preventing immediate failures and improving the overall user experience.

Quick Start

Use the laravel:http-client-resilience skill to make a GET request to '/v1/things' with a 5-second timeout and 3 retries.

Frequently Asked Questions about laravel:http-client-resilience

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle external API timeouts and retries in Laravel HTTP client requests?

To handle API timeouts and retries in Laravel HTTP client, apply resilience patterns like configurable timeouts and automatic retries with exponential backoff. This ensures reliable communication by preventing immediate failures during transient network issues or third-party downtime.

What is exponential backoff and how does it improve HTTP request resilience?

Exponential backoff improves HTTP request resilience by progressively increasing the wait time between automatic retries. This strategy handles transient failures effectively, allowing external APIs time to recover and ensuring data integrity without overwhelming the network.

How do I configure a GET request with timeouts and retries in Laravel?

Configure a GET request in Laravel by specifying parameters for the endpoint, setting a timeout duration like 5 seconds, and defining the number of retries such as 3. This setup handles unsuccessful responses explicitly and logs detailed context for debugging.

Why are my Laravel HTTP client requests failing when calling unreliable third-party APIs?

Laravel HTTP client requests fail against unreliable third-party APIs due to unhandled network issues or transient downtime. Implementing explicit failure handling and logging detailed request and response context prevents immediate application crashes and aids effective debugging.

Can I capture request and response details for debugging HTTP calls in Laravel?

Yes, you can capture request and response details for debugging HTTP calls in Laravel by implementing improved observability. This logs detailed context including status codes and bodies, ensuring easier monitoring of outbound requests and explicit handling of unsuccessful responses.