Skip to content

Commit

Permalink
break the cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
girarda committed Nov 2, 2022
1 parent 5d46bb0 commit 600c195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airbyte-cdk/python/airbyte_cdk/sources/streams/http/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from requests.auth import AuthBase
from requests_cache.session import CachedSession

# list of all possible HTTP methods which can be used for sending of request bodies
from .auth.core import HttpAuthenticator, NoAuth
from .exceptions import DefaultBackoffException, RequestBodyException, UserDefinedBackoffException
from .rate_limiting import default_backoff_handler, user_defined_backoff_handler

# list of all possible HTTP methods which can be used for sending of request bodies
BODY_REQUEST_METHODS = ("GET", "POST", "PUT", "PATCH")


Expand Down Expand Up @@ -260,6 +260,7 @@ def _create_prepared_request(
json: Any = None,
data: Any = None,
) -> requests.PreparedRequest:
raise RuntimeError("HELLO ALEX")
args = {"method": self.http_method, "url": urljoin(self.url_base, path), "headers": headers, "params": params}
if self.http_method.upper() in BODY_REQUEST_METHODS:
if json and data:
Expand Down

0 comments on commit 600c195

Please sign in to comment.