Azure / Azure/Azure-DataFactory

Web activity does not output status code or response body upon failure

Open
#351 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
529
Forks
623
PR merge metrics
No merged PRs in 30d

Description

When I use a Web activity in ADF, I would like to be able to grab the output from a failed call, so it can be logged / used elsewhere in the pipeline

### Observed result:
When a Web activity fails it outputs the following:
```json
{
"effectiveIntegrationRuntime": "AutoResolveIntegrationRuntime (East US 2)",
"executionDuration": 0,
"durationInQueue": {
"integrationRuntimeQueue": 0
},
"billingReference": {
"activityType": "ExternalActivity",
"billableDuration": [
{
"meterType": "AzureIR",
"duration": 0.016666666666666666,
"unit": "Hours"
}
]
}
}
```

### Expected result:
When a Web activity fails it should output something like the following, in addition to the above:
```json
{ ...
"statusCode": "401",
"response":
{
"message": "Authentication failed"
}
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.