-
Notifications
You must be signed in to change notification settings - Fork 22
Description
hello:
When I use the Java SDK to retrieve data from the simulated vehicles, an exception occurs.
MyCode:
`
SmartcarVehicleOptions options = new SmartcarVehicleOptions.Builder()
.build();
Vehicle vehicle = new Vehicle(":55571614-6107-4483-a447-271589485e98", myToken, options);
try {
VehicleFuel fuel = vehicle.fuel();
System.out.println("JsonUtils.toJsonString(fuel) = " + JsonUtils.toJsonString(fuel));
} catch (com.smartcar.sdk.SmartcarException e) {
log.error("SmartcarService get Batch :{} , token:{} ", "deviceThirdPartId", "197639be-0c29-4176-adc9-2305301f69d8", e);
}
`
<dependency> <groupId>com.smartcar.sdk</groupId> <artifactId>java-sdk</artifactId> <version>4.7.3</version> </dependency>
error message
{"statusCode":400,"type":"VALIDATION","code":null,"description":"Request invalid or malformed. Please check for missing parameters, spelling and casing mistakes, and other syntax issues.","docURL":"https://smartcar.com/docs/errors/api-errors/validation-errors#null","resolution":{"type":null},"suggestedUserMessage":"Your vehicle is temporarily unable to connect to <app name>. Please be patient while we’re working to resolve this issue.","requestId":"976a1fdc-138c-4a88-821c-a039126a24b1"}