megha120 opened a new issue, #23663:
URL: https://github.com/apache/airflow/issues/23663
### Apache Airflow version
2.1.0
### What happened
Getting the following error while trying out the Airflow API:
{
"detail": null,
"status": 401,
"title": "Unauthorized",
"type":
"https://airflow.apache.org/docs/apache-airflow/2.1.0/stable-rest-api-ref.html#section/Errors/Unauthenticated"
}
### What you think should happen instead
The API should work properly as I am passing the username and password as
required for basic authentication.
<img width="540" alt="auth"
src="https://user-images.githubusercontent.com/65885522/168012616-ab344035-765c-42ca-a7ee-e608a30099e8.png">
Even with the swagger ui I am getting the same error.


### How to reproduce
I am using the local installation of Apache Airflow
(https://airflow.apache.org/docs/apache-airflow/stable/start/local.html)
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Virtualenv installation
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]