devopshq / youtrack

YouTrack Python 3 Client Library
https://devopshq.github.io/youtrack/
MIT License
27 stars 14 forks source link

create_attachment not working #21

Open temaia opened 5 years ago

temaia commented 5 years ago

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!

dimparf commented 5 years ago

The same error on Python 3

SAnCherepan commented 5 years ago

Sorry, but the current method does not seem to work correctly with the examle you've provided. The problem is clearly on our end. Unfortunately, we did not find time to investigate the problem just yet. We will let you know when we make any progress.