[ 
https://issues.apache.org/jira/browse/AIRFLOW-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666231#comment-16666231
 ] 

ASF GitHub Bot commented on AIRFLOW-450:
----------------------------------------

stale[bot] closed pull request #2398: [AIRFLOW-450] Remove http example operator
URL: https://github.com/apache/incubator-airflow/pull/2398
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> example dag "example_http_operator" compatible issue with Python 3
> ------------------------------------------------------------------
>
>                 Key: AIRFLOW-450
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-450
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 1.7.1
>            Reporter: Lai Qiang Ding
>            Assignee: Lai Qiang Ding
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> it reports error when running the example "example_http_operator" under 
> python3
> lding-mbp:~ wjo1212$ airflow run example_http_operator http_sensor_check 
> 2016-08-04
> {code}
> [2016-08-20 20:44:36,687] {__init__.py:36} INFO - Using executor 
> SequentialExecutor
> Sending to executor.
> [2016-08-20 20:44:37,829] {__init__.py:36} INFO - Using executor 
> SequentialExecutor
> Logging into: 
> /Users/wjo1212/airflow/logs/example_http_operator/http_sensor_check/2016-08-04T00:00:00
> [2016-08-20 20:44:39,081] {__init__.py:36} INFO - Using executor 
> SequentialExecutor
> /Users/wjo1212/python3_study/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py:838:
>  InsecureRequestWarning: Unverified HTTPS request is being made. Adding 
> certificate verification is strongly advised. See: 
> https://urllib3.readthedocs.io/en/latest/security.html
>   InsecureRequestWarning)
> Traceback (most recent call last):
>   File "/Users/wjo1212/python3_study/bin/airflow", line 15, in <module>
>     args.func(args)
>   File 
> "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/bin/cli.py",
>  line 237, in run
>     pool=args.pool,
>   File 
> "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/utils/db.py",
>  line 53, in wrapper
>     result = func(*args, **kwargs)
>   File 
> "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/models.py", 
> line 1245, in run
>     result = task_copy.execute(context=context)
>   File 
> "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/operators/sensors.py",
>  line 56, in execute
>     while not self.poke(context):
>   File 
> "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/operators/sensors.py",
>  line 514, in poke
>     return self.response_check(response)
>   File 
> "/Users/wjo1212/python3_study/lib/python3.4/site-packages/airflow/example_dags/example_http_operator.py",
>  line 72, in <lambda>
>     response_check=lambda response: True if "Google" in response.content else 
> False,
> TypeError: 'str' does not support the buffer interface
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to