devopshq / devopshq/youtrack

create_attachment not working

Open
#21 2 comments 1 reaction 0 assignees View on GitHub
Error
Dominant language
Python
Stars
27
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Hi!
I have started recently using your youtrack rest-api python client and I am currently having problems running the create_attachment() method to attach a binary file to an issue. I am using a command which is similar to the one I was using for the python 2.7 library, namely:
connectionobject.create_attachment("issueid", name='file.png', content=open('file.png','rb'),authorLogin="username")
I get an error "can't concat bytes to string".
Could you inform me if this method is working and, of possible, what is wrong with the command I am using? Thanks you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.