I go this error when I use the rest api call to upload an attachment
I have use the following script to do it
headers = {"X-Atlassian-Token": "no-check"}
with open(image, 'rb') as f:
res = requests.post(
url,
headers=headers,
files={image:f},
auth=some_auth_here
)
I once used the curl command and it works, but not for python scripts. Am I missing some point here?
----------------
problem solved
how?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.