can you explain to me why the following code is producing the error “$.respond() not called for this invocation”?
import { axios } from “@pipedream/platform”;
export default defineComponent({
name: “HTTP Example”,
version: “0.0.1”,
props: {
http: {
type: “$.interface.http”,
customResponse: true,
},
},
async run({ steps, $ }) {
const response = await axios($, {
method: “POST”,
url: “https://eok1zwx7y2cz69b.m.pipedream.net”,
data: {
recipe_extract: steps.trigger.event.body.recipe_extract,
recipe_slug: steps.trigger.event.body.recipe_slug,
recipe_clean_url: steps.trigger.event.body.recipe_clean_url,
recipe_instructions: steps.create_html.$return_value,
},
headers: {
“user-agent”: “pipedream/1”,
“content-type”: “application/json”,
},
});
return $.respond({
status: 200,
body: response.data
});
},
});