Skip to content

Automate browser based workflows with AI

Log response text on http post (#2153)

Suchintane233359ad267
diff --git a/skyvern/forge/sdk/core/aiohttp_helper.py b/skyvern/forge/sdk/core/aiohttp_helper.py
index d6e38f008..0f7d2386b 100644
--- a/skyvern/forge/sdk/core/aiohttp_helper.py
+++ b/skyvern/forge/sdk/core/aiohttp_helper.py
@@ -107,7 +107,14 @@ async def aiohttp_post(
return await response.json()
if raise_exception:
raise HttpException(response.status, url)
- LOG.error("None 200 async post response", url=url, status_code=response.status, method="POST")
+ response_text = await response.text()
+ LOG.error(
+ "Non 200 async post response",
+ url=url,
+ status_code=response.status,
+ method="POST",
+ response=response_text,
+ )
return {}
except Exception:
if retry_timeout > 0: