diff --git a/http-caller-get/index.ts b/http-caller-get/index.ts index 5094d68..b1da608 100644 --- a/http-caller-get/index.ts +++ b/http-caller-get/index.ts @@ -16,5 +16,6 @@ export function getDescription() { export async function execute(context): Promise { const requestEndpoint = context.parameters.get; const response = await fetch(requestEndpoint); - console.debug(response.json()); + const responseJson = await response.json(); + console.debug(responseJson); } diff --git a/http-caller-post/index.ts b/http-caller-post/index.ts index 528c0e2..d0505f5 100644 --- a/http-caller-post/index.ts +++ b/http-caller-post/index.ts @@ -12,8 +12,8 @@ export function getDescription() { id: "body", displayName: "Body", description: "Body to send to the endpoint", - type: "String", - } + type: "String", + }, ], output: [], } as const satisfies ScriptDescription;