Skip to content

get data error from SDK #165

@1181888200

Description

@1181888200

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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions