fix(workflow): correct property usage in HTTP request node
This commit is contained in:
@@ -80,7 +80,7 @@ class HttpRequestNode(BaseNode):
|
|||||||
self.typed_config.auth.header: api_key
|
self.typed_config.auth.header: api_key
|
||||||
}
|
}
|
||||||
case _:
|
case _:
|
||||||
raise RuntimeError(f"Auth type not supported: {self.typed_config.auth_type}")
|
raise RuntimeError(f"Auth type not supported: {self.typed_config.auth.auth_type}")
|
||||||
|
|
||||||
def _build_header(self, state: WorkflowState) -> dict[str, str]:
|
def _build_header(self, state: WorkflowState) -> dict[str, str]:
|
||||||
"""
|
"""
|
||||||
@@ -142,7 +142,7 @@ class HttpRequestNode(BaseNode):
|
|||||||
case HttpContentType.RAW:
|
case HttpContentType.RAW:
|
||||||
content["content"] = self._render_template(self.typed_config.body.data, state)
|
content["content"] = self._render_template(self.typed_config.body.data, state)
|
||||||
case _:
|
case _:
|
||||||
raise RuntimeError(f"Content type not supported: {self.typed_config.content_type}")
|
raise RuntimeError(f"Content type not supported: {self.typed_config.body.content_type}")
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def _get_client_method(self, client: AsyncClient) -> Callable[..., Coroutine[Any, Any, Response]]:
|
def _get_client_method(self, client: AsyncClient) -> Callable[..., Coroutine[Any, Any, Response]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user