Skip to content

Commit

Permalink
Introduce request retries
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Feb 4, 2022
1 parent 8ed9b91 commit f388e4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,7 @@ private function fetchApi(bool $count = false): mixed
'Authorization' => 'Bearer ' . ApiHelper::retrieveAccessToken(),
])
->withBody($this->getQuery(), 'plain/text')
->retry(3, 100)
->post($endpoint)
->throw()
->json();
Expand Down

0 comments on commit f388e4e

Please sign in to comment.