Log http block request body, make azure blob key parameterizable (#3300)
Co-authored-by: Suchintan Singh <suchintan@skyvern.com>
This commit is contained in:
@@ -3208,8 +3208,8 @@ class HttpRequestBlock(Block):
|
||||
method=self.method,
|
||||
url=self.url,
|
||||
headers=self.headers,
|
||||
has_body=bool(self.body),
|
||||
workflow_run_id=workflow_run_id,
|
||||
body=self.body,
|
||||
)
|
||||
|
||||
# Use the generic aiohttp_request function
|
||||
@@ -3223,7 +3223,16 @@ class HttpRequestBlock(Block):
|
||||
)
|
||||
|
||||
response_data = {
|
||||
# Response information
|
||||
"status_code": status_code,
|
||||
"response_headers": response_headers,
|
||||
"response_body": response_body,
|
||||
# Request information (what was sent)
|
||||
"request_method": self.method,
|
||||
"request_url": self.url,
|
||||
"request_headers": self.headers,
|
||||
"request_body": self.body,
|
||||
# Backwards compatibility
|
||||
"headers": response_headers,
|
||||
"body": response_body,
|
||||
"url": self.url,
|
||||
|
||||
Reference in New Issue
Block a user