"Sorry, an error occurred. Please try again later"
# 🤝help
q
When I use my bot it gives this error when Im calling an API where I do a XMLHttpRequest. When I test it within Botpress it all worked. But my chatbot on wordpress integrated it doesnt.

https://cdn.discordapp.com/attachments/1146818740667826216/1146818741078851674/image.png

https://cdn.discordapp.com/attachments/1146818740667826216/1146818741452157048/image.png

b
I've had this issue. Do you see a little flame emoji (🔥) on botpress?
q
no but i think its because this new URLSearchParams function

https://cdn.discordapp.com/attachments/1146818740667826216/1147072443333234718/Bildschirmfoto_2023-09-01_um_09.33.26.png

because the AI Task cannot handle what I want to be done, I am calling an API and passing the inputs as parameters
@bumpy-addition-21507 Where exactly on botpress do you mean ?
@bumpy-addition-21507 now i know where you mean. You mean in the botpress emulator. and yes there is the flame emoji
actually now it works in the emulator

https://cdn.discordapp.com/attachments/1146818740667826216/1147074092516774018/image.png

but the chatbot on my wordpress pages doesnt
@rich-battery-69172 Do you or someone of your team know why?
@many-grass-6150 Do you know why my chatbot on my wordpress does not work while it works on my emulator?
can somebody of the team please say something? why can i not make an api call with XMLHttpRequest ? or fetch? I checked my code multiple times and it would work
now i did it with axios. But the output/ apiResponse is empty

https://cdn.discordapp.com/attachments/1146818740667826216/1147194045240705114/Bildschirmfoto_2023-09-01_um_17.34.33.png

https://cdn.discordapp.com/attachments/1146818740667826216/1147194325118226503/image.png

62 Views