Skip to content

PHP client should throw an exception / response for rate limit (429) #8

@romain-chanu

Description

@romain-chanu

Background

As a user, I want to handle 429 errors received by the server and implement a retry mechanism.

Problem

As of today, the site-search-php throws a general exception for 429 error code without any response details regarding the rate limit. Based on the documentation, there are two response headers which provide a guideline towards the rate limit. Without information related to the rate limit, the caller cannot implement such retry mechanism.

Possible solution

Similiar to the app-search-php client, the site-search-php client could also return a specific exception so that the caller can handle rate limit.

Metadata

Metadata

Assignees

Labels

in roadmapIssues that are tracked in roadmap

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions