https://api.sandbox.orcid.org/v1.2/<scholarid>/affiliations, token: <tokenvalue>
{
"error" : "invalid_token",
"error_description" : "Invalid access token: : <tokenvalue>
}
this is the doc provided scope
/activities/update | /affiliations | Add education or employment items to the ORCID record | XML for Affiliations |
Can you please tell me if you know why is this failing?
Thanks
Bindu
UFM- Annarbor
--
You received this message because you are subscribed to the Google Groups "ORCID API Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-users+unsubscribe@googlegroups.com.
To post to this group, send email to orcid-api-users@googlegroups.com.
Visit this group at https://groups.google.com/group/orcid-api-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-use...@googlegroups.com.
To post to this group, send email to orcid-a...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-users+unsubscribe@googlegroups.com.
To post to this group, send email to orcid-api-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-users+unsubscribe@googlegroups.com.
To post to this group, send email to orcid-api-users@googlegroups.com.
TRACE: 2017-03-20 19:36:39,787 ajp-nio-127.0.0.1-8009-exec-66 edu.umich.its.orcid.manager.OrcidManager -DATA: body response:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error xmlns="http://www.orcid.org/ns/error">
<response-code>400</response-code>
<developer-message>400 Bad Request: There is an issue with your data or the API endpoint. 405 Method Not Allowed: Endpoint and method mismatch. 415 Unsupported Media Type: data must be in XML or JSON format.</developer-message>
<user-message>ORCID could not process the data, because they were invalid.</user-message>
<error-code>9001</error-code>
<more-info>https://members.orcid.org/api/resources/troubleshooting</more-info>
</error>
here's the details for post:-
scope for accesstoken :- "scope=/read-limited /activities/update /person/update"
(redirect:https://sandbox.orcid.org/oauth/authorize?client_id=APP-8RVUI1BWPUUDCPRS&response_type=code&scope=/read-limited /activities/update /person/update&redirect_uri=https://researchid-dev.dsc.umich.edu/researchId/orcidcallback&given_names=Jeanne&family_names=Horvath&email=jea...@mailinator.com)
header("Content-Type", "application/vnd.orcid+xml")
url=https://api.sandbox.orcid.org/v2.0_rc2/0000-0002-3588-6521/employment
Xml message:-
<?xml version="1.0" encoding="UTF-8"?>
<employment:employment
xmlns:employment="http://www.orcid.org/ns/employment" xmlns:common="http://www.orcid.org/ns/common"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.orcid.org/ns/employment ../employment-2.0_rc2.xsd ">
<employment:organization>
<common:name>University of Michigan</common:name>
<common:address>
<common:city>Ann Arbor</common:city>
<common:region>MI</common:region>
<common:country>US</common:country>
</common:address>
<common:disambiguated-organization>
type "employment:employmentxmlns" must be followed by either attribute specifications, ">" or "/>".]
Cheers,Hi Bindu,
From our side it looks like you are not sending parsable XML.
type "employment:employmentxmlns" must be followed by either attribute specifications, ">" or "/>".]
Cheers,
Rob
Robert PetersTimezone: PST
Key for OpenPGP email communication:
https://keys.mailvelope.com/pks/lookup?op=get&search=0x1519F37D99E18378
On Mon, Mar 20, 2017 at 4:46 PM, Bindu Dandamudi <bdan...@umich.edu> wrote:
Here's what i am seeing as response body:-
TRACE: 2017-03-20 19:36:39,787 ajp-nio-127.0.0.1-8009-exec-66 edu.umich.its.orcid.manager.OrcidManager -DATA: body response:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error xmlns="http://www.orcid.org/ns/error">
<response-code>400</response-code>
<developer-message>400 Bad Request: There is an issue with your data or the API endpoint. 405 Method Not Allowed: Endpoint and method mismatch. 415 Unsupported Media Type: data must be in XML or JSON format.</developer-message>
<user-message>ORCID could not process the data, because they were invalid.</user-message>
<error-code>9001</error-code>
<more-info>https://members.orcid.org/api/resources/troubleshooting</more-info>
</error>
here's the details for post:-
scope for accesstoken :- "scope=/read-limited /activities/update /person/update"
(redirect:https://sandbox.orcid.org/oauth/authorize?client_id=APP-8RVUI1BWPUUDCPRS&response_type=code&scope=/read-limited /activities/update /person/update&redirect_uri=https://researchid-dev.dsc.umich.edu/researchId/orcidcallback&given_names=Jeanne&family_names=Horvath&email=jeanneh@mailinator.com)
--
You received this message because you are subscribed to a topic in the Google Groups "ORCID API Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orcid-api-users/nQDO5i37SCA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orcid-api-users+unsubscribe@googlegroups.com.