Skip to content

pw: retry on 502 and 504 errors#82

Merged
kuba-moo merged 1 commit into
linux-netdev:mainfrom
matttbe:pw-retry-get
Jul 22, 2026
Merged

pw: retry on 502 and 504 errors#82
kuba-moo merged 1 commit into
linux-netdev:mainfrom
matttbe:pw-retry-get

Conversation

@matttbe

@matttbe matttbe commented Jul 22, 2026

Copy link
Copy Markdown
Member

Recently, some services have failed due to a 504 error from Patchwork when retrieving a JSON with:

self._request(...).json()

or:

self._get(...).json()

In both cases, the logs were showing:

**** Response
<Response [504]>
**** Response data
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>

Ask the requests lib to retry on 502 and 504 for us, that seems the easiest (if this works as expected).

Recently, some services have failed due to a 504 error from Patchwork
when retrieving a JSON with:

  self._request(...).json()

or:

  self._get(...).json()

In both cases, the logs were showing:

  **** Response
  <Response [504]>
  **** Response data
  <html>
  <head><title>504 Gateway Time-out</title></head>
  <body>
  <center><h1>504 Gateway Time-out</h1></center>
  </body>
  </html>

Ask the requests lib to retry on 502 and 504 for us, that seems the
easiest (if this works as expected).

Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
@matttbe
matttbe requested a review from kuba-moo July 22, 2026 14:54
@kuba-moo
kuba-moo merged commit f90cce3 into linux-netdev:main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants