kiaradlf opened a new issue, #39777:
URL: https://github.com/apache/airflow/issues/39777
### Apache Airflow version
2.9.1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
http hook throws when `params` passed as kwarg
### What you think should happen instead?
no error
### How to reproduce
when i invoke:
```
from airflow.providers.http.hooks.http import HttpHook
HttpHook.__init__(method="GET", http_conn_id="foo").run(** {'endpoint':
'/foos', 'params': {'page': 1}})
```
i get the error:
```
File
"/home/airflow/.local/lib/python3.11/site-packages/airflow/providers/http/hooks/http.py",
line 177, in run
req = requests.Request(self.method, url, params=data, headers=headers,
**request_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: requests.models.Request() got multiple values for keyword
argument 'params'
```
### Operating System
chromeos
### Versions of Apache Airflow Providers
1.9.0
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] 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]