Azure / Azure/data-api-builder

[Bug]: SQL login failure surfaces as Kestrel TaskCanceledException

Open
#3,581 0 comments 0 reactions 0 assignees View on GitHub
2.x auth
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

## Expected

Database connectivity failures during startup should appear clearly at default verbosity.

Example:

```text
ERROR: Could not connect to database.
Login failed for user ''.
```

## Actual

The visible error is a Kestrel `BindAsync` `TaskCanceledException`, which looks like a port binding issue. The real `Login failed` message is only visible in verbose logs.

This sends users down the wrong troubleshooting path.

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.