Team,
I am using the Sample code provided with the SDK and it works on my desktop (Windows 10 - JDK 1.8.x). The same code deployed on my Linux server - JDK 1.8 fails with the following error
What is the cause of this error when it works fine on my desktop?
{
request:{
command:'GET https://api.smartsheet.com/2.0/sheets',
},
response:{
status:'HTTP/1.1 403 Forbidden',
body:'**contentType 'text/html; charset=utf-8' not logged**'
}
}
com.smartsheet.api.SmartsheetException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
Its clear that I am receiving a HTML instead of a JSON.
I have also enabled
static {
// Uncomment these lines to enable logging to console
System.setProperty("Smartsheet.trace.parts", "RequestBody,ResponseBodySummary");
System.setProperty("Smartsheet.trace.pretty", "true");
}
Thank you
Prashanth