stack not working
# 🤝help
b
const endpoint = "STACK_AI_LINK" const headers = { // TODO: bearer token environment variable Authorization: 'API_KEY_HERE', "Content-Type": "application/json" } const data = { "in-0": workflow.question, } try { const response = await axios.post(endpoint, data, { headers }) workflow.apiResponse = response.data['out-0'] } catch (error) { throw new Error(
stack-error: ${error}
) }
That's the code i used for my execute code block obviously with my api key and link

https://cdn.discordapp.com/attachments/1133762320980529223/1133762496390508764/image.png

it's giving me error occured on my bp
but when i ask the same question in stackai, it works and gives me a response according to my prompt