get UserInfo from access key
I am trying out the integration with Docusign using the API
I successfully generated an access token using the Integration Key and Client Token. Next, I am using the new token to get a UserInfo
apiClient.getTokenEndPoint().setCode(authCode);
apiClient.getTokenEndPoint().setGrantType(GrantType.CLIENT_CREDENTIALS);
apiClient.registerAccessTokenListener(new AccessTokenListener() {
@Override
public void notify(BasicOAuthToken token) {
System.out.println("Got a fresh token: " + token.getAccessToken());
try {
userInfo = apiClient.getUserInfo(token.getAccessToken());
} catch (IllegalArgumentException | ApiException e) {
e.printStackTrace();
}
}
});
apiClient.updateAccessToken();
But I get the following internal server error with ref id 3ef37d61-4d5d-47ff-ab44-13d4e70bd8d1 on the account-d.docusign.com server.
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 401 with response Body: '{"error":"internal_server_error","reference_id":"9a51533b-d2c3-4724-ae55-6a593dd67378"}'
at com.gp.service.docusign.DocuSignService.getUserInfo(DocuSignService.java:160)
at com.gp.service.docusign.DocuSignService$1.notify(DocuSignService.java:117)
at com.docusign.esign.client.auth.OAuth.updateAccessToken(OAuth.java:135)
With server demo.docusign.net
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 404 with response Body: ''
rest access-token userinfo
add a comment |
I am trying out the integration with Docusign using the API
I successfully generated an access token using the Integration Key and Client Token. Next, I am using the new token to get a UserInfo
apiClient.getTokenEndPoint().setCode(authCode);
apiClient.getTokenEndPoint().setGrantType(GrantType.CLIENT_CREDENTIALS);
apiClient.registerAccessTokenListener(new AccessTokenListener() {
@Override
public void notify(BasicOAuthToken token) {
System.out.println("Got a fresh token: " + token.getAccessToken());
try {
userInfo = apiClient.getUserInfo(token.getAccessToken());
} catch (IllegalArgumentException | ApiException e) {
e.printStackTrace();
}
}
});
apiClient.updateAccessToken();
But I get the following internal server error with ref id 3ef37d61-4d5d-47ff-ab44-13d4e70bd8d1 on the account-d.docusign.com server.
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 401 with response Body: '{"error":"internal_server_error","reference_id":"9a51533b-d2c3-4724-ae55-6a593dd67378"}'
at com.gp.service.docusign.DocuSignService.getUserInfo(DocuSignService.java:160)
at com.gp.service.docusign.DocuSignService$1.notify(DocuSignService.java:117)
at com.docusign.esign.client.auth.OAuth.updateAccessToken(OAuth.java:135)
With server demo.docusign.net
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 404 with response Body: ''
rest access-token userinfo
add a comment |
I am trying out the integration with Docusign using the API
I successfully generated an access token using the Integration Key and Client Token. Next, I am using the new token to get a UserInfo
apiClient.getTokenEndPoint().setCode(authCode);
apiClient.getTokenEndPoint().setGrantType(GrantType.CLIENT_CREDENTIALS);
apiClient.registerAccessTokenListener(new AccessTokenListener() {
@Override
public void notify(BasicOAuthToken token) {
System.out.println("Got a fresh token: " + token.getAccessToken());
try {
userInfo = apiClient.getUserInfo(token.getAccessToken());
} catch (IllegalArgumentException | ApiException e) {
e.printStackTrace();
}
}
});
apiClient.updateAccessToken();
But I get the following internal server error with ref id 3ef37d61-4d5d-47ff-ab44-13d4e70bd8d1 on the account-d.docusign.com server.
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 401 with response Body: '{"error":"internal_server_error","reference_id":"9a51533b-d2c3-4724-ae55-6a593dd67378"}'
at com.gp.service.docusign.DocuSignService.getUserInfo(DocuSignService.java:160)
at com.gp.service.docusign.DocuSignService$1.notify(DocuSignService.java:117)
at com.docusign.esign.client.auth.OAuth.updateAccessToken(OAuth.java:135)
With server demo.docusign.net
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 404 with response Body: ''
rest access-token userinfo
I am trying out the integration with Docusign using the API
I successfully generated an access token using the Integration Key and Client Token. Next, I am using the new token to get a UserInfo
apiClient.getTokenEndPoint().setCode(authCode);
apiClient.getTokenEndPoint().setGrantType(GrantType.CLIENT_CREDENTIALS);
apiClient.registerAccessTokenListener(new AccessTokenListener() {
@Override
public void notify(BasicOAuthToken token) {
System.out.println("Got a fresh token: " + token.getAccessToken());
try {
userInfo = apiClient.getUserInfo(token.getAccessToken());
} catch (IllegalArgumentException | ApiException e) {
e.printStackTrace();
}
}
});
apiClient.updateAccessToken();
But I get the following internal server error with ref id 3ef37d61-4d5d-47ff-ab44-13d4e70bd8d1 on the account-d.docusign.com server.
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 401 with response Body: '{"error":"internal_server_error","reference_id":"9a51533b-d2c3-4724-ae55-6a593dd67378"}'
at com.gp.service.docusign.DocuSignService.getUserInfo(DocuSignService.java:160)
at com.gp.service.docusign.DocuSignService$1.notify(DocuSignService.java:117)
at com.docusign.esign.client.auth.OAuth.updateAccessToken(OAuth.java:135)
With server demo.docusign.net
com.docusign.esign.client.ApiException: Error: Error while requesting server, received a non successful HTTP code 404 with response Body: ''
rest access-token userinfo
rest access-token userinfo
asked Jan 2 at 18:10
P. SolanoP. Solano
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54011164%2fget-userinfo-from-access-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54011164%2fget-userinfo-from-access-key%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown