Skip to content

Commit

Permalink
fix: handle invalid json / string body (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ashwinkumar authored Oct 27, 2020
1 parent b2bfe02 commit 8e67a84
Show file tree
Hide file tree
Showing 48 changed files with 138 additions and 90 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ download links are also provided below.

### Gradle
```groovy
compile "com.smartcar.sdk:java-sdk:2.6.2"
compile "com.smartcar.sdk:java-sdk:2.6.3"
```

### Maven
```xml
<dependency>
<groupId>com.smartcar.sdk</groupId>
<artifactId>java-sdk</artifactId>
<version>2.6.2</version>
<version>2.6.3</version>
</dependency>
```

### Jar Direct Download
* [java-sdk-2.6.2.jar](https://bintray.com/smartcar/library/download_file?file_path=com%2Fsmartcar%2Fsdk%2Fjava-sdk%2F2.6.2%2Fjava-sdk-2.6.2.jar)
* [java-sdk-2.6.2-sources.jar](https://bintray.com/smartcar/library/download_file?file_path=com%2Fsmartcar%2Fsdk%2Fjava-sdk%2F2.6.2%2Fjava-sdk-2.6.2-sources.jar)
* [java-sdk-2.6.2-docs.jar](https://bintray.com/smartcar/library/download_file?file_path=com%2Fsmartcar%2Fsdk%2Fjava-sdk%2F2.6.2%2Fjava-sdk-2.6.2-docs.jar)
* [java-sdk-2.6.3.jar](https://bintray.com/smartcar/library/download_file?file_path=com%2Fsmartcar%2Fsdk%2Fjava-sdk%2F2.6.3%2Fjava-sdk-2.6.3.jar)
* [java-sdk-2.6.3-sources.jar](https://bintray.com/smartcar/library/download_file?file_path=com%2Fsmartcar%2Fsdk%2Fjava-sdk%2F2.6.3%2Fjava-sdk-2.6.3-sources.jar)
* [java-sdk-2.6.3-docs.jar](https://bintray.com/smartcar/library/download_file?file_path=com%2Fsmartcar%2Fsdk%2Fjava-sdk%2F2.6.3%2Fjava-sdk-2.6.3-docs.jar)


## Usage
Expand Down Expand Up @@ -129,5 +129,5 @@ start making requests to vehicles.
[ci-url]: https://travis-ci.com/smartcar/java-sdk
[coverage-image]: https://codecov.io/gh/smartcar/java-sdk/branch/master/graph/badge.svg?token=nZAITx7w3X
[coverage-url]: https://codecov.io/gh/smartcar/java-sdk
[javadoc-image]: https://img.shields.io/badge/javadoc-2.6.2-brightgreen.svg
[javadoc-image]: https://img.shields.io/badge/javadoc-2.6.3-brightgreen.svg
[javadoc-url]: https://smartcar.github.io/java-sdk
2 changes: 1 addition & 1 deletion docs/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>All Classes (java-sdk - 2.6.2)</title>
<title>All Classes (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion docs/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>All Classes (java-sdk - 2.6.2)</title>
<title>All Classes (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/AuthClient.AuthUrlBuilder.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>AuthClient.AuthUrlBuilder (java-sdk - 2.6.2)</title>
<title>AuthClient.AuthUrlBuilder (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AuthClient.AuthUrlBuilder (java-sdk - 2.6.2)";
parent.document.title="AuthClient.AuthUrlBuilder (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/AuthClient.AuthVehicleInfo.Builder.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>AuthClient.AuthVehicleInfo.Builder (java-sdk - 2.6.2)</title>
<title>AuthClient.AuthVehicleInfo.Builder (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AuthClient.AuthVehicleInfo.Builder (java-sdk - 2.6.2)";
parent.document.title="AuthClient.AuthVehicleInfo.Builder (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/AuthClient.AuthVehicleInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>AuthClient.AuthVehicleInfo (java-sdk - 2.6.2)</title>
<title>AuthClient.AuthVehicleInfo (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AuthClient.AuthVehicleInfo (java-sdk - 2.6.2)";
parent.document.title="AuthClient.AuthVehicleInfo (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/AuthClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>AuthClient (java-sdk - 2.6.2)</title>
<title>AuthClient (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AuthClient (java-sdk - 2.6.2)";
parent.document.title="AuthClient (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/BatchResponseMissingException.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>BatchResponseMissingException (java-sdk - 2.6.2)</title>
<title>BatchResponseMissingException (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BatchResponseMissingException (java-sdk - 2.6.2)";
parent.document.title="BatchResponseMissingException (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/SmartcarException.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>SmartcarException (java-sdk - 2.6.2)</title>
<title>SmartcarException (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SmartcarException (java-sdk - 2.6.2)";
parent.document.title="SmartcarException (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/Vehicle.UnitSystem.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Vehicle.UnitSystem (java-sdk - 2.6.2)</title>
<title>Vehicle.UnitSystem (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Vehicle.UnitSystem (java-sdk - 2.6.2)";
parent.document.title="Vehicle.UnitSystem (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/Vehicle.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Vehicle (java-sdk - 2.6.2)</title>
<title>Vehicle (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Vehicle (java-sdk - 2.6.2)";
parent.document.title="Vehicle (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/ApiData.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ApiData (java-sdk - 2.6.2)</title>
<title>ApiData (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ApiData (java-sdk - 2.6.2)";
parent.document.title="ApiData (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/ApplicationPermissions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ApplicationPermissions (java-sdk - 2.6.2)</title>
<title>ApplicationPermissions (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ApplicationPermissions (java-sdk - 2.6.2)";
parent.document.title="ApplicationPermissions (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/Auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Auth (java-sdk - 2.6.2)</title>
<title>Auth (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Auth (java-sdk - 2.6.2)";
parent.document.title="Auth (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/BatchDeserializer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>BatchDeserializer (java-sdk - 2.6.2)</title>
<title>BatchDeserializer (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BatchDeserializer (java-sdk - 2.6.2)";
parent.document.title="BatchDeserializer (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/BatchResponse.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>BatchResponse (java-sdk - 2.6.2)</title>
<title>BatchResponse (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BatchResponse (java-sdk - 2.6.2)";
parent.document.title="BatchResponse (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/Compatibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Compatibility (java-sdk - 2.6.2)</title>
<title>Compatibility (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Compatibility (java-sdk - 2.6.2)";
parent.document.title="Compatibility (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/RequestPaging.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>RequestPaging (java-sdk - 2.6.2)</title>
<title>RequestPaging (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RequestPaging (java-sdk - 2.6.2)";
parent.document.title="RequestPaging (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/ResponsePaging.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ResponsePaging (java-sdk - 2.6.2)</title>
<title>ResponsePaging (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ResponsePaging (java-sdk - 2.6.2)";
parent.document.title="ResponsePaging (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/SmartcarResponse.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>SmartcarResponse (java-sdk - 2.6.2)</title>
<title>SmartcarResponse (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SmartcarResponse (java-sdk - 2.6.2)";
parent.document.title="SmartcarResponse (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/VehicleBattery.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>VehicleBattery (java-sdk - 2.6.2)</title>
<title>VehicleBattery (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="VehicleBattery (java-sdk - 2.6.2)";
parent.document.title="VehicleBattery (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions docs/com/smartcar/sdk/data/VehicleCharge.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>VehicleCharge (java-sdk - 2.6.2)</title>
<title>VehicleCharge (java-sdk - 2.6.3)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="VehicleCharge (java-sdk - 2.6.2)";
parent.document.title="VehicleCharge (java-sdk - 2.6.3)";
}
}
catch(err) {
Expand Down
Loading

0 comments on commit 8e67a84

Please sign in to comment.