cade6974
05/15/2025, 2:55 AMVapi Support Bot
05/15/2025, 2:57 AMjavascript
if (data && typeof data === 'object') {
// Safe to use data here
}
Review your workflow steps, especially after the API call, to ensure all required data is present and defined before you use it.
Sources:
- [Vapi workflow error "Cannot convert undefined or null to object"](https://discord.com/channels/1211482211119796234/1328923059905630238)
- [handling undefined or null data in Vapi API calls](https://discord.com/channels/1211482211119796234/1328923059905630238)maruskaa.666
05/15/2025, 6:12 AMHeiwa
05/15/2025, 6:20 AMHeiwa
05/15/2025, 6:23 AMKyle
05/17/2025, 12:40 AM