https://discord.gg/botpress logo
Help with a POST request to an external API
# 🤝help
s
Hi everyone, I need help with a POST request to an external API (FastMarketing). I’m using the following code in my execute code block: What’s happening: The code executes without any errors in the Botpress "Test your bot" environment. The logs show that the payload is being sent and no exceptions are thrown. However, the data never reaches the FastMarketing cloud – no entries appear on their side. Additional info Our Botpress workspace shows this warning: "You have used 99% of your 1K limit for Table Rows." Could this usage limit prevent data from being sent or stored properly, even though the request appears successful? Question: Does anyone know why the request seems to succeed (no errors, logs look fine) but the API does not store or receive the data? Could it be related to authentication, missing headers, or something about Botpress’s axios environment (e.g., blocked external requests)? Has anyone experienced something similar with Botpress limits interfering with external API calls? Could Botpress be blocking/suppressing the outgoing data because of the storage limit? Any help or suggestions would be greatly appreciated! 🙏 https://cdn.discordapp.com/attachments/1399777741057949810/1399777741435572346/Schermata_2025-07-29_alle_17.33.26.png?ex=688a3c1c&is=6888ea9c&hm=d6e1b7100eea9b4934660480985add05616c79cef6521df1b3b5b600cef95161&
p
Your code shows your variables that store the API's response might not be properly defined or written. Have you created them in your workflow? Also the actual api call should look like: await axios.post() without bp before. Hope this helps!
s
I tried as suggested, but the message still doesn't reach its destination...
p
Are you testing within the emulator or the preview link? If only one of them, could you try the other?
s
I'm testing both on the emulator and on the one being published (done after clicking publish)
@prehistoric-airplane-85682 Do you have any advice for me? Thanks
p
Have you tested the endpoint in something like postman to ensure you're using it as expected with the correct arguments?
p
Your current code requires external librairies which are not supported within execute code cards. Try using, if the endpoint allows it, application/json payloads instead of multipart/form-data.
5 Views