Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Partner Program >

Refresh Token Call is not working in Partner app

Started by Sugana Ganeshavel -   in Partner Program

We are upgrading our public app to partner app in java. In that, We are trying to make refresh token call, by having xero-java-sdk-1.0.3-jar-with-dependencies.jar in our project. While processing the request we are getting the response as

org.apache.http.conn.ConnectTimeoutException: Connect to api.xero.com:443 (api.xero.com/, api.xero.com/ failed: connect timed out
Could any one help us to figure out the issue?

Thank you,
Sugana G

Official Xero Reply
Hi Sugana,

Thanks for letting me know.

Found I was not setting the headers properly for Java 1.8, that has been fixed in v 1.0.5 of SDK. Your unique user-agent will now be set from config.json.

Sidney Maestre (Community Manager)