Azure / Azure/data-api-builder
[Bug]: SQL login failure surfaces as Kestrel TaskCanceledException
Open
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
Assessment
This issue has not been assessed yet.