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

create_attachment not working #21

Open
temaia opened this issue Feb 4, 2019 · 2 comments
Open

create_attachment not working #21

temaia opened this issue Feb 4, 2019 · 2 comments
Labels

Comments

@temaia
Copy link

temaia commented Feb 4, 2019

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!

@temaia temaia changed the title Create create_attachment not working Feb 4, 2019
@dimparf
Copy link

dimparf commented Jul 25, 2019

The same error on Python 3

@SAnCherepan
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants