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

Attachment bug in olog script #4

Open
dejande opened this issue Jan 28, 2016 · 1 comment
Open

Attachment bug in olog script #4

dejande opened this issue Jan 28, 2016 · 1 comment

Comments

@dejande
Copy link

dejande commented Jan 28, 2016

Hi.

There is an error when calling an olog script with "-a" parameter.

Traceback (most recent call last):
  File "./olog", line 151, in <module>
    olog()
  File "./olog", line 125, in olog
    attachments = [Attachment(open(a)) for a in args.attach.split(',')]
AttributeError: 'list' object has no attribute 'split'

By removing ".split(',')" in

https://github.com/Olog/pyOlog/blob/master/scripts/olog#L125

uploading attachments works.

Also if you want to upload multiple attachments with the same name you get the following error:

Traceback (most recent call last):
  File "./olog", line 151, in <module>
    olog()
  File "./olog", line 148, in olog
    client.log(log_entry)
  File "/usr/local/lib/python2.7/dist-packages/pyOlog/OlogClient.py", line 82, in log
    resp.raise_for_status()
  File "/usr/lib/python2.7/dist-packages/requests/models.py", line 825, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict

Python 2.7.9
requests 2.4.3
urllib3 1.9.1

@berryma4
Copy link
Member

@shroffk

tacaswell pushed a commit to tacaswell/pyOlog that referenced this issue Dec 22, 2016
Fix incorrect URLs in when deleting a resource
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