You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Philippe Gagnon (JIRA)" <ji...@apache.org> on 2019/07/30 17:46:00 UTC
[jira] [Updated] (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 ]
Philippe Gagnon updated AIRFLOW-5075:
-------------------------------------
Description:
{{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}
was:
{{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.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}
> 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)