https://discord.gg/botpress logo
#🤝help
Stack AI error
# 🤝help
w

wooden-engineer-15195

07/19/2023, 3:10 PM
I need some help with this, I dont know what Im doing wrong. Could you please help me? Let me know if you need any more information besides the pictures provided here:

https://cdn.discordapp.com/attachments/1131241758861303840/1131241759519813674/IMG_0599.jpg

https://cdn.discordapp.com/attachments/1131241758861303840/1131241760039895080/IMG_0597.jpg

https://cdn.discordapp.com/attachments/1131241758861303840/1131241760790683709/IMG_0596.jpg

f

famous-jewelry-85388

07/19/2023, 3:14 PM
Would you paste the code here?
w

wooden-engineer-15195

07/19/2023, 3:47 PM
var inNode = 'in-0' var outNode = 'out-0' let url =
https://www.stack-inference.com/run_deployed_flow?flow_id=64a84c95d7a9ad02831e584f&org=c8424df7-fc84-4ac4-9fb1-125fe3a3240b
try { const response = await axios.post( url, { [inNode]:
${event.preview}
}, { headers: { Authorization:
Bearer ${env.apiKey}
, 'Content-Type': 'application/json' } } ) workflow.apiResponse = response.data[outNode] } catch (e) { console.error(
There was an error calling Stack-AI: ${e}
) }
f

famous-jewelry-85388

07/19/2023, 3:49 PM
Is that hte exact code? it is raising a lof of issues on my side

https://cdn.discordapp.com/attachments/1131241758861303840/1131251536178200616/image.png

I can fixing, I am just confirming
One more question, what is the URL to that platform?
Can you share the Documentation URL?
w

wooden-engineer-15195

07/19/2023, 5:00 PM
b

broad-vase-10073

07/19/2023, 5:11 PM
Dude just paste your stack Ai api key after Bearer
w

wooden-engineer-15195

07/19/2023, 5:15 PM
Ive done that I didnt want random people to see it so thats why i didnt put it in here
But thanks though
f

famous-jewelry-85388

07/19/2023, 5:49 PM
No, that's not it, I can't find the documentation for the API
Or the website to register and get my own API Key
2 Views