vdkrav93 opened a new issue, #45046: URL: https://github.com/apache/airflow/issues/45046
### Apache Airflow version Other Airflow 2 version (please specify below) ### If "Other Airflow 2 version" selected, which one? 2.0.1.973 ### What happened? Web UI is working as expected on http://localhost:8080/home, but any REST API call, e.g. curl --location 'http://localhost:8080/api/v1/dags' fails. I disabled authentication with auth_backends=airflow.api.auth.backend.default in env-airflow-in-nsk.cfg <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> </head> <body> <div class="container"> <h1> Ooops! </h1> <div> <pre> Something bad has happened. Please consider letting us know by creating a <b><a href="https://github.com/apache/airflow/issues/new/choose">bug report using GitHub</a></b>. Python version: 3.8.18 Airflow version: 2.0.1.973 Node: airflow-webserver ------------------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.8/dist-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python3.8/dist-packages/connexion/decorators/decorator.py", line 68, in wrapper response = function(request) File "/usr/local/lib/python3.8/dist-packages/connexion/decorators/uri_parsing.py", line 149, in wrapper response = function(request) File "/usr/local/lib/python3.8/dist-packages/connexion/decorators/validation.py", line 399, in wrapper return function(request) File "/usr/local/lib/python3.8/dist-packages/connexion/decorators/response.py", line 112, in wrapper response = function(request) File "/usr/local/lib/python3.8/dist-packages/connexion/decorators/parameter.py", line 120, in wrapper return function(**kwargs) File "/usr/local/lib/python3.8/dist-packages/airflow/api_connexion/security.py", line 45, in decorated check_authentication() File "/usr/local/lib/python3.8/dist-packages/airflow/api_connexion/security.py", line 30, in check_authentication response = current_app.api_auth.requires_authentication(Response)() File "/usr/local/lib/python3.8/dist-packages/nordstrom/api/auth/backend/custom_auth_api.py", line 47, in decorated f"""Request received with path: {request.path} """ File "/usr/local/lib/python3.8/dist-packages/werkzeug/datastructures.py", line 1463, in __getitem__ return _unicodify_header_value(self.environ["HTTP_" + key]) KeyError: 'HTTP_X_AUTHPROXY_LANID' </pre> </div> </div> </body> </html> ### What you think should happen instead? _No response_ ### How to reproduce I am running Airflow locally using my company artifactory. Please, let me know if error is not reproducible outside our settings. ### Operating System Mac OS 14.7.1 (23H222) ### Versions of Apache Airflow Providers N/A ### Deployment Docker-Compose ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [X] 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]
