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

error with export_responses function #7

Open
piotx opened this issue Feb 1, 2017 · 0 comments
Open

error with export_responses function #7

piotx opened this issue Feb 1, 2017 · 0 comments

Comments

@piotx
Copy link

piotx commented Feb 1, 2017

Traceback (most recent call last):
File "example.py", line 21, in
export_res_token = lime.export_responses(sid, token)
File "/home/p/programming/python/lime-py-api/limesurvey.py", line 126, in export_responses
out = b64decode(self._getJSON(data)['result']).decode('utf-8')
File "/usr/lib/python2.7/base64.py", line 75, in b64decode
return binascii.a2b_base64(s)
TypeError: a2b_base64() argument 1 must be string or buffer, not dict

when I add print self._getJSON(data)['result']) before line 126 in limesruvey.py I get:
{u'status': u'Language code not found for this survey.'}

any ideas, how to fix this

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

1 participant