diff --git a/workflows/dags/author/author_create/author_create_init.py b/workflows/dags/author/author_create/author_create_init.py index 812eeb39..9fbfb207 100644 --- a/workflows/dags/author/author_create/author_create_init.py +++ b/workflows/dags/author/author_create/author_create_init.py @@ -68,8 +68,6 @@ def create_author_create_user_ticket(**context: dict) -> None: "description": "test", "caller_email": "", # leave empty } - logger.info("wow") - logger.info(request_data) response = inspire_http_hook.call_api( endpoint=endpoint, data=request_data, method="POST" ) diff --git a/workflows/plugins/hooks/inspirehep/inspire_http_hook.py b/workflows/plugins/hooks/inspirehep/inspire_http_hook.py index 15b93fd9..2912de16 100644 --- a/workflows/plugins/hooks/inspirehep/inspire_http_hook.py +++ b/workflows/plugins/hooks/inspirehep/inspire_http_hook.py @@ -27,7 +27,6 @@ def tenacity_retry_kwargs(self) -> dict: def headers(self) -> dict: return { "Authorization": f'Bearer {Variable.get("inspire_token")}', - "Accept": "application/vnd+inspire.record.raw+json", } def run( @@ -55,6 +54,8 @@ def run( return self.run_and_check(session, prepped_request, extra_options) def call_api(self, method: str, endpoint: str, data: dict) -> Response: + self.log.info("HEADERS ARE") + self.log.info(str(self.headers)) return self.run_with_advanced_retry( _retry_args=self.tenacity_retry_kwargs, endpoint=endpoint,