Hashrin
01/21/2026, 1:59 PMVapi Support Bot
01/21/2026, 2:00 PM"Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON" usually means your tool's endpoint is returning an HTML error page (such as a 404 or 500), not the required JSON format. According to the documentation, your webhook must always return a valid JSON response and HTTP 200 status—even for errors.
Could you confirm if the endpoint URL configured for "defaultQueryTool" is currently accessible and returning the expected JSON structure when called directly (e.g., via curl or Postman)?
This will help determine if the issue is with the endpoint itself or with the integration. For further troubleshooting, please review your call logs and API logs in the [Vapi dashboard](https://dashboard.vapi.ai/) and validate your response format using a JSON validator as recommended in the documentation.
If you need guidance on the required JSON structure, let me know!
Sources:
- [Vapi Debugging Documentation](https://docs.vapi.ai/debugging)
- [Custom Tools Troubleshooting](https://docs.vapi.ai/tools/custom-tools-troubleshooting)Wyv3rn
01/22/2026, 8:48 AMprojects/angelic-bee-418405/locations/us-central1/publishers/google/models/gemini-1.5-pro was not found or your project does not have access to it. PWyv3rn
01/22/2026, 8:50 AMChiranjeet Mishra
01/22/2026, 11:30 AMHashrin
01/23/2026, 9:44 PMChiranjeet Mishra
01/24/2026, 5:59 AM