bugraoz93 commented on PR #50837:
URL: https://github.com/apache/airflow/pull/50837#issuecomment-2910366923

   > It shows me Server Error :
   > 
   > ```
   > 2025-05-26 16:42:46 [warning  ] Server error                   
[airflowctl.api.client] extra={'detail': [{'type': 'int_parsing', 'loc': 
['query', 'limit'], 'msg': 'Input should be a valid integer, unable to parse 
string as an integer', 'input': ''}, {'type': 'bool_parsing', 'loc': ['query', 
'is_alive'], 'msg': 'Input should be a valid boolean, unable to interpret 
input', 'input': ''}]}
   > 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 
64, in safe_call_command
   >     function(args)
   >   File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 306, 
in wrapper
   >     return func(*args, api_client=api_client, **kwargs)
   >   File "/opt/airflow/airflow-ctl/src/airflowctl/ctl/cli_config.py", line 
468, in _get_func
   >     rich.print(operation_method_object(**method_params))
   >   File "/opt/airflow/airflow-ctl/src/airflowctl/api/operations.py", line 
114, in wrapped
   >     return _exit_if_server_response_error(response=func(self, *args, 
**kwargs))
   >   File "/opt/airflow/airflow-ctl/src/airflowctl/api/operations.py", line 
509, in list
   >     raise e
   >   File "/opt/airflow/airflow-ctl/src/airflowctl/api/operations.py", line 
506, 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': [{'type': 'int_parsing', 'loc': ['query', 'limit'], 'msg': 'Input 
should be a valid integer, unable to parse string as an integer', 'input': ''}, 
{'type': 'bool_parsing', 'loc': ['query', 'is_alive'], 'msg': 'Input should be 
a valid boolean, unable to interpret input', 'input': ''}]}
   > ```
   > 
   > Could you please guide me on what we can do to solve this error ?
   
   That can stay for `is_alive`. We can handle that in a separate PR. You can 
include the `is_alive` and assume it will work. Let's not add the `limit` back 
since we will return everything in the feature you are working on. 


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