Open vunguyenhung opened 1 year ago
Another Workaround is to use code block instead of Webhook Block
const response = {};
try {
const res = await axios.post("...myUrl..", payload, {
headers: {
header1: steps...headerRef,
Authorization: `Bearer ${steps...tokenRef}`,
},
});
response.responseStatus = { status: res.status, body: res.data };
} catch (e) {
response.responseStatus = {
status: e.response.status,
body: e.response.data,
};
response.isError = true;
}
if (response.isError) {
throw new Error(JSON.stringify(response, null, 2));
}
return response;
Is your feature request related to a problem? Please describe. I added an Webhook Custom Request action into a workflow and deployed the workflow. On Pipedream's Inspect View, when the Custom Request action has error response body, I couldn't see the error body so I couldn't easily debug it
Describe the solution you'd like I can see the error response body of the failed Custom Request action
Do you have a workaround? Currently I can see the error response body in the Builder UI, but it's hard to select the right event to debug
Additional context Reported by a customer here: https://pipedream-users.slack.com/archives/CPTJYRY5A/p1669780868644409