You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/07/31 08:20:00 UTC

[jira] [Resolved] (AIRFLOW-5075) HttpHook cannot handle connections with an empty host field

     [ https://issues.apache.org/jira/browse/AIRFLOW-5075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ash Berlin-Taylor resolved AIRFLOW-5075.
----------------------------------------
    Resolution: Done

> HttpHook cannot handle connections with an empty host field
> -----------------------------------------------------------
>
>                 Key: AIRFLOW-5075
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5075
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks
>    Affects Versions: 1.10.3
>            Reporter: Philippe Gagnon
>            Assignee: Philippe Gagnon
>            Priority: Major
>             Fix For: 2.0.0
>
>
> {{HttpHook}} cannot handle connections with an empty {{host}} field:
>  
> {code:java}
> Traceback (most recent call last):
>   File "my_operator.py", line 152, in <module>
>     - datetime.timedelta(days=1)
>   File "my_operator.py", line 50, in execute
>     sess = self.sfdc_hook.get_conn()
>   File "/home/ubuntu/.local/lib/python3.6/site-packages/airflow/hooks/http_hook.py", line 63, in get_conn
>     if "://" in conn.host:
> TypeError: argument of type 'NoneType' is not iterable
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)