Skip to content

Commit 7e46969

Browse files
committed
feat NEXUS-817: added 5xx to custom code
1 parent 0b30b41 commit 7e46969

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/unstructured_client/_hooks/custom/request_utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,7 @@ async def call_api_async(
169169
retry_connection_errors=True
170170
)
171171

172-
retryable_codes = [
173-
"502",
174-
"503",
175-
"504"
176-
]
172+
retryable_codes = ["5xx"]
177173

178174
async def do_request():
179175
return await client.send(pdf_chunk_request)

0 commit comments

Comments
 (0)