Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submit_group_post() call returns empty content #36

Closed
dianatatu opened this issue Jan 8, 2014 · 1 comment
Closed

submit_group_post() call returns empty content #36

dianatatu opened this issue Jan 8, 2014 · 1 comment

Comments

@dianatatu
Copy link

When trying to submit a post to a group, the following error is raised:

>>> application.submit_group_post(group_id, title, summary, submitted_url, submitted_image_url, content_title, description)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "linkedin/linkedin.py", line 363, in submit_group_post
    response = response.json()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 733, in json
    return json.loads(self.text, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/__init__.py", line 488, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/decoder.py", line 389, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

because the response has an empty content that cannot be json decoded.

What is the expected content of a successful response?

@ozgur
Copy link
Owner

ozgur commented May 12, 2014

It is fixed in master branch. I'll submit a new version into pypi asap.

@ozgur ozgur closed this as completed May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants