with Error and Supadata?
export default defineComponent({
async run({steps, $}) {
throw new Error('Oops something went wrong')
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
supadata: {
type: "app",
app: "supadata",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.supadata.ai/v1/health`,
headers: {
"x-api-key": `${this.supadata.$auth.api_key}`,
},
})
},
})