When This Event Fires
TheVEHICLE_ERROR event fires when:
- Smartcar detects an error while retrieving signal data
- The vehicle manufacturer’s API returns an error
- The vehicle is offline or unreachable
- Authentication, permission, or compatibility errors occur
Resolution notifications: When an error condition is resolved (e.g., vehicle comes back online), Smartcar sends another
VEHICLE_ERROR event with state set to "RESOLVED". This enables automatic recovery workflows.Error Categories
Errors are categorized by type and include specific error codes:Connected Services Account Errors
Connected Services Account Errors
Issues with the user’s account with the vehicle manufacturer.
Vehicle State Errors
Vehicle State Errors
Issues with the vehicle’s connectivity or state.
Compatibility Errors
Compatibility Errors
Issues with signal availability for the specific vehicle.
Permission Errors
Permission Errors
Issues with granted permissions.
Payload Structure
Unique identifier for this event. Use this for idempotency to prevent duplicate processing.
Always
"VEHICLE_ERROR" for this event type.Smartcar vehicle ID for the vehicle this event relates to.
Container for event data.
Webhook delivery metadata. See Event Reference Overview for complete
meta object schema.Example Payloads
- Error State
- Resolved State
Delivered when an error occurs.
Common Error Scenarios
Processing VEHICLE_ERROR Events
Basic Handler
Best Practices
Track error state changes
Track error state changes
Monitor both
ERROR and RESOLVED states to implement automatic recovery workflows.Use suggestedUserMessage for notifications
Use suggestedUserMessage for notifications
Display the user-friendly message to vehicle owners instead of technical error descriptions.
Implement retry logic for transient errors
Implement retry logic for transient errors
Some errors (ASLEEP, UNREACHABLE) are transient. Implement exponential backoff retries.
Handle multiple simultaneous errors
Handle multiple simultaneous errors
A single
VEHICLE_ERROR event can contain multiple errors affecting different signals.Degrade gracefully in your UI
Degrade gracefully in your UI
When errors occur, show stale data with a clear indication that it’s not current.
Error Resolution Tracking
When an error condition is resolved, Smartcar sends aVEHICLE_ERROR event with state: "RESOLVED":
Next Steps
Error Reference
Complete error code documentation
VEHICLE_STATE Event
Learn about successful signal deliveries
Reliability Best Practices
Implement idempotency and retry handling
Delivery Behavior
Understand retry policies

