You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2018. It is now read-only.
It appears when I pass a list of dictionaries to create_new_attachment_by_content_id I get an assertion error when the request is built.
The structure of the list is: [{'file': file1}, {'file': file2}, {'file': file3}]
Stack trace:
self.confluence.create_new_attachment_by_content_id(content_id, attachments)
File "C:\dev\Python27\lib\site-packages\pythonconfluenceapi-0.0.1rc4-py2.7.egg\PythonConfluenceAPI\api.py", line 813, in create_new_attachment_by_content_id
File "C:\dev\Python27\lib\site-packages\pythonconfluenceapi-0.0.1rc4-py2.7.egg\PythonConfluenceAPI\api.py", line 133, in _service_post_request
File "C:\dev\Python27\lib\site-packages\pythonconfluenceapi-0.0.1rc4-py2.7.egg\PythonConfluenceAPI\api.py", line 109, in _service_request
File "C:\dev\Python27\lib\site-packages\requests\sessions.py", line 451, in request
prep = self.prepare_request(req)
File "C:\dev\Python27\lib\site-packages\requests\sessions.py", line 382, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\dev\Python27\lib\site-packages\requests\models.py", line 307, in prepare
self.prepare_body(data, files, json)
File "C:\dev\Python27\lib\site-packages\requests\models.py", line 453, in prepare_body
(body, content_type) = self._encode_files(files, data)
File "C:\dev\Python27\lib\site-packages\requests\models.py", line 132, in _encode_files
for (k, v) in files:
ValueError: need more than 1 value to unpack
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It appears when I pass a list of dictionaries to
create_new_attachment_by_content_id
I get an assertion error when the request is built.The structure of the list is:
[{'file': file1}, {'file': file2}, {'file': file3}]
Stack trace:
The text was updated successfully, but these errors were encountered: