mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-14 01:09:43 +00:00
fix webhook successful status code range (#2486)
This commit is contained in:
parent
de18a60ac2
commit
c575ad8bc7
3 changed files with 3 additions and 3 deletions
|
@ -1268,7 +1268,7 @@ class WorkflowService:
|
|||
resp = await client.post(
|
||||
url=workflow_run.webhook_callback_url, data=payload, headers=headers, timeout=httpx.Timeout(30.0)
|
||||
)
|
||||
if resp.status_code == 200:
|
||||
if resp.status_code >= 200 and resp.status_code < 300:
|
||||
LOG.info(
|
||||
"Webhook sent successfully",
|
||||
workflow_id=workflow_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue