EXECUTION CARD ERROR OUTSIDE EMULATOR
# 🤝help
b
Anyone facing an issue with execution code?
f
Nope. What do you have in your execute code card?
b
A post request not registering in my server logs
f
Could you share a few more details about it? What have you done to make sure that its not just the execute code card that isn't working but maybe its the POST?
b
When I use the emulator, the POST request to my server is successful, however, when I deploy the bot through whatsapp intergration, the execution card fails to make the POST request.
f
What is the error message
b
my call is a payment system initiation. the error is no logging of the execution card outside the emulator
f
Have you checked the logs in the dashboard
b
Yeah. WhatsApp is invoking the botpress api but the botpress api is not invoking the execution card for completion.
In the emulator though, it's working fine.
f
Hmm that is weird. Could you add something to the execute code card where you would save the error message from the POST request in a workflow variable. Then put that workflow variable in a text card so you can see it in your chat
b
I used fetch instead of axios and it worked
Maybe the dependency has a glitch. But the native fetch works perfect with the execution card.