Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

A lot off timeout exception #33

Answered by thejamescollins
Alt0car asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there @Alt0car, thanks for getting in touch.

The Tectalic API client itself doesn't have any limits on API request timeouts. Instead, that is the responsibility of the HTTP client that you are using.

By the looks of things you are using the Symfony PSR18 HTTP client.

Looking at https://symfony.com/doc/current/http_client.html#psr-18-and-psr-17, it seems you may need to use code similiar to this:

$httpClient = (new Psr18Client())->withOptions([  'timeout' => 600, 'max_duration' => 600 ]);

$client     = new Client($httpClient, $auth, Manager::BASE_URI);

Good luck with your project!

James

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thejamescollins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants