Recipe Bot -api-call error
# 🤝help
p
Error executing action "inline-ins-c705a0865e.js" in flow:Main:node:call_api [AxiosError, Network Error] Entering workflow (flow:Error) [node:Entry] from (flow:Main) [node:call_api], i have tried every possible solution but this is the error that comes up everytime, my apikey is absolutely fine the code is perfectly fine then what's the issue, please help me out in here.
f
hey @powerful-ambulance-89433 Spoonacular API has experienced alot of downtime in the last couple of months it could be down again
p
it works perfectly fine when i copy the code url with the parameters in my browser it is working fine, but the code is not executing and my bot is not working
f
did you check out the template itself for the code
you can select it from the templates when you create a new bot
p
please look into it and help me, i really need to build this bot as soon as possible

https://cdn.discordapp.com/attachments/1137431150076375261/1137432991606517880/image.png

f
did you read my previous message?
p
yes but i did not really understand it well
f
select this template to see the functional code

https://cdn.discordapp.com/attachments/1137431150076375261/1137433395631239219/Screenshot_2023-08-05_at_1.13.59_PM.png

p
I have done it, and followed the template, I am still unable to fix it
f
const url = 'https://api.spoonacular.com/recipes/complexSearch' const params = { query: workflow.baseQuery, diet: workflow.dietType, apiKey: env.apiKey, number: '3', ignorePantry: 'false', sort: 'popularity', sortDirection: 'asc', addRecipeInformation: 'true', addRecipeNutrition: 'false' } try { const response = await axios.get(url, { params }) if (response.status === 200) { workflow.recipeInfo = response.data.results } } catch (error) { console.error(error) }
click the sparkles (top right corner)

https://cdn.discordapp.com/attachments/1137431150076375261/1137434252707893309/Screenshot_2023-08-05_at_1.17.29_PM.png

and replace your code with the one i jsut pasted (from the template)
p
thank you for your help
f
no problem
happy bot building
b
jb carousels only work with emulator but dont in htm or when we publish on websote
f
did you try adding subtitles
b
No, would you please share a tutorial how I can add image and subtitle
Can I add another question here, I integrated pipedream to connect googlesheet through webhook, everything is running perfectly but still Im having this error in emulator: Error status: 400 errorError data: $.respond() not called for this invocation 38errorError message: Request failed with status code 400
there is no problem in functionality, leads are being saved perfectly but in emulator Imm having this

https://cdn.discordapp.com/attachments/1137431150076375261/1139280284005699717/image.png

3 Views