Prab-27 commented on issue #45666:
URL: https://github.com/apache/airflow/issues/45666#issuecomment-2846043346

   @bugraoz93 I am sorry for late I was busy to solve my `keyrings.alt ` 
dependency issues
   As we discussed 
[here](https://github.com/apache/airflow/issues/45661#issuecomment-2797148773) 
When I ran this command I encountered an error. I am trying to troubleshoot it, 
but I believe I need to manually test it and should check if this works . I am 
working on adding the command and resolving the error.
   
   Could you please clarify why this is happening?
   
   ```
   root@c2200f45f57f:/opt/airflow# airflowctl jobs list
   2025-05-01 23:42:18 [warning  ] Server error                   
[airflowctl.api.client] extra={'detail': 'Not authenticated'}
   Traceback (most recent call last):
     File "/usr/local/bin/airflowctl", line 10, in <module>
       sys.exit(main())
     File "/opt/airflow/airflow-ctl/src/airflowctl/__main__.py", line 34, in 
main
       safe_call_command(args.func, args=args)
     File "/opt/airflow/airflow-ctl/src/airflowctl/ctl/cli_config.py", line 60, 
in safe_call_command
       function(args)
     File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 301, in 
wrapper
       return func(*args, api_client=api_client, **kwargs)
     File "/opt/airflow/airflow-ctl/src/airflowctl/ctl/cli_config.py", line 
439, in _get_func
       rich.print(operation_method_object(**method_params))
     File "/opt/airflow/airflow-ctl/src/airflowctl/api/operations.py", line 
103, in wrapped
       return _exit_if_server_response_error(response=func(self, *args, 
**kwargs))
     File "/opt/airflow/airflow-ctl/src/airflowctl/api/operations.py", line 
368, in list
       raise e
     File "/opt/airflow/airflow-ctl/src/airflowctl/api/operations.py", line 
365, in list
       self.response = self.client.get("jobs", params=params)  # type: ignore
     File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1054, 
in get
       return self.request(
     File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 827, 
in request
       return self.send(request, auth=auth, follow_redirects=follow_redirects)
     File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 914, 
in send
       response = self._send_handling_auth(
     File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 942, 
in _send_handling_auth
       response = self._send_handling_redirects(
     File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 999, 
in _send_handling_redirects
       raise exc
     File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 982, 
in _send_handling_redirects
       hook(response)
     File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 98, in 
raise_on_4xx_5xx
       return get_json_error(response) or response.raise_for_status()
     File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 94, in 
get_json_error
       raise err
   airflowctl.api.operations.ServerResponseError: Client error message: 
{'detail': 'Not authenticated'}
   ```


-- 
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]

Reply via email to