How to debug the API call error
# 🤝help
e
I'm new to botpress and making an external API call I keeps erroring out but not able to find what is the error exactly. Attach is the code I'm using in the execute code block. Can someone help on this
f
Hey there, You should be able to go to the logs, and then click on the error to expand it, and see a more detailed message
First issue is probably this const { v4: uuidv4 } = require('uuid');
You can only use Luxon, Axios and Loodash, if I remember correctly.
e
I removed uuid and tested and here is the error message: 08:02:20 error card:Make API call to Dante AI and process response action Dante AI API call failed: AxiosError: Request failed with status code 401 {"scope":"bot-action","cardId":"card:Make API call to Dante AI and process response","nodeId":"node:Standard1","workflowId":"flow:Main"}
Looks like the error is with the API key. I will check.
However, could also let me know how to create a random UUID in botpress