JIRA time zone difference

I am using the sample code from Atlassian for JIRA OAuth. I am getting timestamp issues

java -jar OAuthTutorialClient-1.0.jar requestToken

com.google.api.client.http.HttpResponseException: 400
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1070)
at com.google.api.client.auth.oauth.AbstractOAuthGetToken.execute(AbstractOAuthGetToken.java:73)
at com.atlassian.oauth.client.example.JiraOAuthClient.getAndAuthorizeTemporaryToken(JiraOAuthClient.java:37)
at com.atlassian.oauth.client.example.OAuthClient.handleGetRequestTokenAction(OAuthClient.java:69)
at com.atlassian.oauth.client.example.OAuthClient.execute(OAuthClient.java:51)
at com.atlassian.oauth.client.example.ClientMain.main(ClientMain.java:18)

How to fix this?

Are the 2 servers’s times in sync?

This issue is solved. I don’t see an option to delete the post

Rather than deleting the post - can you post what solves the issue? That way the next developer that runs into the problem won’t have to ask. :slight_smile:

1 Like

I agree with @daniel . StackOverflow is the same way. We would love it if you can answer your own question in case someone else can benefit from your findings.

TBH, I am curious what you found.