Closed
Description
Scenario
Take this Bruno Request as an example:
meta {
name: HTTP Bin Get Anything
type: http
seq: 3
}
post {
url: https://httpbin.org/anything
body: json
auth: none
}
headers {
accept: application/json
}
body:json {
{
"test": "hello Bruno"
}
}
vars:post-response {
unknown_field: res.body.arguments.unknown_field
}
We are using httpbin.org to echo our request payload.
In the post response
, we're attempting to set the value of unknown_field
to a non-existent field (In a real use-case, this could be a result of an unexpected payload in the response).
Due to this configuration, we get the following error in the response tab:
Error invoking remote method 'send-http-request': TypeError: Cannot read properties of undefined (reading 'unknown_field')
This is expected because the response payload has no field named arguments
.
In the Timeline tab, the following content is shown:
> POST https://httpbin.org/anything
> accept: application/json
> content-type: application/json
> data {"test":"hello Bruno"}
< Error
Feature Request
In this scenario, show the raw response payload in the "Timeline tab". This would make it easier to understand why the parsing of the response failed in post-response, without having to check the backend server for the response it sent back.