Hi,
I am getting 400 Bad Request response from LinkedIn on posting new share message. I am using SNAPSHOT builds for LinkedIn. This worked flawlessly earlier, but with recent Snapshot builds this seems broken again.
Request in in JSON format:
{"comment":"xcxcxccxcx","content":{"title":"xcxcxc cxc","submittedUrl":"google.com"},"visibility":{"c ode":"anyone"}}
I verified the headers for proper content type and is populated as "application/json".
API EndPoint:
http://api.linkedin.com/v1/people/~/shares
Response from LinkedIn:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>400</status>
<timestamp>1368533172919</timestamp>
<request-id>X5ZB57YRQ5</request-id>
<error-code>0</error-code>
<message>Couldn't parse share document: error: Unexpected element: CDATA</message>
</error>
I tried to sent the same request with proper content-type in REST console @ http://developer.linkedin.com/rest-console and is working fine.
Can you kindly help me in fixing this.
Regards
Rama Krishna
I am getting 400 Bad Request response from LinkedIn on posting new share message. I am using SNAPSHOT builds for LinkedIn. This worked flawlessly earlier, but with recent Snapshot builds this seems broken again.
Request in in JSON format:
{"comment":"xcxcxccxcx","content":{"title":"xcxcxc cxc","submittedUrl":"google.com"},"visibility":{"c ode":"anyone"}}
I verified the headers for proper content type and is populated as "application/json".
API EndPoint:
http://api.linkedin.com/v1/people/~/shares
Response from LinkedIn:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>400</status>
<timestamp>1368533172919</timestamp>
<request-id>X5ZB57YRQ5</request-id>
<error-code>0</error-code>
<message>Couldn't parse share document: error: Unexpected element: CDATA</message>
</error>
I tried to sent the same request with proper content-type in REST console @ http://developer.linkedin.com/rest-console and is working fine.
Can you kindly help me in fixing this.
Regards
Rama Krishna