philipherrmann opened a new issue #20088:
URL: https://github.com/apache/airflow/issues/20088
### Apache Airflow Provider(s)
google
### Versions of Apache Airflow Providers
apache-airflow-providers-google==6.1.0
### Apache Airflow version
2.2.2 (latest released)
### Operating System
Debian GNU/Linux 10 (buster)
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### What happened
When using the CloudSQLExecuteQueryOperator the Cloud SQL Proxy Download
fails due to a breaking API change in the httpx dependency, logging the
following traceback:
```
Traceback (most recent call last):
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/operators/cloud_sql.py",
line 1056, in _execute_query
cloud_sql_proxy_runner.start_proxy()
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/hooks/cloud_sql.py",
line 558, in start_proxy
self._download_sql_proxy_if_needed()
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/hooks/cloud_sql.py",
line 502, in _download_sql_proxy_if_needed
response = httpx.get(download_url, allow_redirects=True)
TypeError: get() got an unexpected keyword argument 'allow_redirects'
```
The keyword allow_redirects has been renamed to follow_redirects in this PR
https://github.com/encode/httpx/pull/1808. One should probably fix either of
those options and pin a suitable version of httpx.
### What you expected to happen
_No response_
### How to reproduce
_No response_
### Anything else
task = CloudSQLExecuteQueryOperator(
task_id="test",
gcp_cloudsql_conn_id="postgres-google-cloud-sql-connection",
trigger_rule=TriggerRule.ALL_SUCCESS,
sql="""
SELECT %s
""",
parameters=["test"],
)
### 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]