@Vapi Team - I'm creating a custom tool
# general-english
j
@User - I'm creating a custom tool (function), and am receiving this error: Network error: Unable to connect to the server. This could be due to CORS restrictions, the server being down, or network connectivity issues. I've checked everything I can think of, have specifically added CORS responses to my server for OPTIONS requests, and can see that your system is requesting OPTIONS from my server, and getting a response. Is there any way I can view the request being sent, and the response, from VAPI's end, so I can figure out the real problem?
k
Ensure your server returns Access-Control-Allow-Origin, Methods, and Headers. To debug, use Vapi client.logs.get() to view request/response logs, or check your dashboard and browser dev tools for more insights.
j
Right now, I'm using the vapi web dashboard to build and running test requests from there. Where would I find the logs in there?
Ah, dumping to console in dev tools. Okay, thanks.
k
Go to your dashboard, then go to the Calls tab to view detailed logs and analyze individual test requests.
m
Just set your express server to allow all origins
8 Views