GoogleCloudBaseHook does not exclude 308 response code #8810
Labels
area:providers
kind:bug
This is a clearly a bug
provider:google
Google (including GCP) related issues
Apache Airflow version: 1.10.10
Environment:
python:3.7-stretch
docker imagepip install --constraint https://raw.githubusercontent.com/apache/airflow/1.10.10/requirements/requirements-python3.7.txt apache-airflow[gcp, google_auth]==1.10.10
What happened:
httplib2 throws an exception when extending GoogleDriveHook to create a resumable upload. The libraries dependencies are based on requirements-python3.7.txt.
What you expected to happen:
GoogleCloudBaseHook should exclude
308
response code from httplib2's list of redirect status codes. I believe this is the same issue reported by googleapis/google-api-python-client#803 and fixed in googleapis/google-api-python-client#813.Since we are already using
set_user_agent
fromgoogleapiclient.http
, is it possible to use build_http instead of directly creating from httplib2?How to reproduce it:
Running this Code will give us
the following exception:
Temporary workaround:
Downgrading
httplib2==0.15.0
works as a temporary workaround.The text was updated successfully, but these errors were encountered: