potiuk commented on PR #29395:
URL: https://github.com/apache/airflow/pull/29395#issuecomment-1421405239
Also tested the client API:
```python
import datetime
import airflow_client.client
from pprint import pprint
from airflow_client.client.api import dag_run_api
#
# In case of the basic authentication below. Make sure:
# - Airflow is configured with the basic_auth as backend:
# auth_backend = airflow.api.auth.backend.basic_auth
# - Make sure that the client has been generated with securitySchema Basic.
# Configure HTTP basic authorization: Basic
configuration = airflow_client.client.Configuration(
host="http://localhost:8080/api/v1",
username='admin',
password='admin'
)
# Enter a context with an instance of the API client
with airflow_client.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = dag_run_api.DAGRunApi(api_client)
try:
# Get current configuration
api_response =
api_instance.get_dag_runs(dag_id='example_params_ui_tutorial',
start_date_lte=datetime.datetime.now(
tz=datetime.timezone.utc))
pprint(api_response)
except airflow_client.client.ApiException as e:
print("Exception when calling ConfigApi->get_config: %s\n" % e)
```
Results in no warnings and properly formatted params:

When we remove timezone it correctly fails:

And we get this as response:

So it looks like everything works as expected. Even if the last one (no
timezone failure) might be not the same as before, this is a **proper**
behaviour - due to ambiguity of no-timezone query
--
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]