ToxaZ opened a new issue #8861:
URL: https://github.com/apache/airflow/issues/8861
**Apache Airflow version**: 1.10.10
**What happened**:
Execution of HttpHook leads to error (on the API serverside):
```
{"Error":"Could not read JSON: Unrecognized token 'format': was expecting
'null', 'true', 'false' or NaN\n at [Source:
org.apache.catalina.connector.CoyoteInputStream@50edfaf7; line: 1, column: 8];
nested exception is org.codehaus.jackson.JsonParseException: Unrecognized token
'format': was expecting 'null', 'true', 'false' or NaN\n at [Source:
org.apache.catalina.connector.CoyoteInputStream@50edfaf7; line: 1, column: 8]"}
```
The reason was providing `dict` instead of `JSON formatted str`
**What you expected to happen**:
Currently HttpHook.run
[provides](https://github.com/apache/airflow/blob/96697180d79bfc90f6964a8e99f9dd441789177c/airflow/hooks/http_hook.py#L93)
the following docstring:
```
:param data: payload to be uploaded or request parameters
:type data: **dict**
```
which is misleading since that would cause mentioned error, it should
actually be a `:type data: **json**`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]