must i authorize the domains to be able for web ca...
# support
a
i am able to use the web call using the client sdk, but when i upload the code to the server stop working, give some "Cannot read properties of undefined (reading 'statusCode')" error
must i authorize the domain when the web call is going to be used?
v
@asesistel I'm glad to hear that the web call feature is working locally with the client SDK. The error you're encountering on the server, "Cannot read properties of undefined (reading 'statusCode')", typically indicates that there's an issue with the server environment or the way the code is interacting with the server-side resources. Here are a few steps you can take to troubleshoot the issue: 1. **Check Dependencies**: Ensure that all the necessary dependencies and SDK versions are installed on the server just like your local environment. 2. **Environment Variables**: If your code relies on environment variables, make sure they are properly set up on the server. 3. **Error Handling**: Implement comprehensive error handling to catch and log errors. This can provide more insight into where the code is failing. 4. **Server Configuration**: Verify that the server is configured correctly to handle the requests and that there are no firewalls or security settings that might be blocking the requests. 5. **Code Differences**: Double-check if there are any differences between the local and server code. Sometimes, code changes might not be fully pushed to the server. 6. **Logging**: Add more logging around the area where the error occurs to capture the full context of the error. 7. **Permissions**: Ensure that the server has the correct permissions to access the resources it needs to make the web call. 8. **Network Issues**: Investigate any potential network issues that might be preventing the server from making outgoing requests. If you've gone through these steps and are still facing issues, it might be helpful to look at the server logs for more detailed error messages or stack traces. If you need further assistance, please provide additional context or error logs, and I'll do my best to help you resolve the issue.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
a
Hi, iam reviewing all the documentation and here is the weird thing, i am following the https://docs.vapi.ai/quickstart/web tutorial, the api key i am using is allowed for all domains, the code works fine on stackblitz and works fine in my local computer accesing with localhost and 127.0.0.1, but when i try to use the app using the local lan ip address it does not work, the same happens when i upload the code to the server, it looks something related with the url allowed to use the service
@User the api key is allowed for all domains, but everything works as expected when the url is localhost or 127.0.0.1, any suggestion ?
is there any api call i need to execute to allow the domains ??? even when i clone stackblitz project and the url changes stop working too, with the same error
I realize using the web snippet works ok, the problem is using the VapiAI/quickstart-react
s
Hey @asesistel your missing the daily package which is visible through console logs, try adding the missing and then let me know how it goes.
a
Hi @Shubham Bajaj i noticed the error about the "VM14:3 daily-js version 0.58.0 is no longer supported. Please upgrade to a newer version." but as it worked with 127.0.0.1 and locahost i thought it was not related, the weird thing is even when the error says about the version 0.58.0 not being supported, i could not find that version neither upgrade it, i seems to be included on other package
i am using the quickstart from the vapi github: https://github.com/VapiAI/quickstart-react, using the web snippet works ok, so it's not related to allow the domain, i am going to make some test using the client sdk directly, thanks for your help again
s
Hey @asesistel do let me know how your tests goes, for now marking this ticket solved.