I’m receiving a 401 Unauthorized error when trying to post attachments to the Jira Cloud.
my code in python:
##################################################
import glob
import requests
import json
import time
def upPagare(pagare):
tmp = pagare.split('.')
noAct = tmp[0]
url = 'https://pochteca.atlassian.net/rest/api/2/issue/'+noAct+'/attachments'
headers = {"X-Atlassian-Token": "nocheck"}
# please uncomment to attach external file
files = {'file': open(pagare, 'rb')}
r = requests.post(url, auth=('aferreirao@pochteca.com.mx', 'lalala'), files=files, headers=headers)
print(r.status_code)
print(r.text)
pagares = [f for f in glob.glob("*.pdf")]
for x in range(len(pagares)):
print("updating :" + pagares[x])
upPagare(pagares[x])
print("success:" +pagares[x])
time.sleep(10)
#################################################
I almost try with Curl:
##############################################
curl -D- -u aferreirao@pochteca.com.mx:lalala -X POST -H "X-Atlassian-Token: nocheck" -F "file=@C:\Users\aferreirao\Desktop\CAP-16041.pdf" https://pochteca.atlassian.net/rest/api/2/issue/CAP-16041/attachments
################################################
Is there a reason not to use Postgres? As far as I understand, your Express edition will not be covered by a support contract, so Postgres may actually be better quality, open-source and unlimited.
It's also cheaper for your Norvegian provider to host a (Postgres) database because it's on Unix (Linux), rather than a Windows-based database which requires much more powerful hardware and a license of Windows Server. At least, on Unix, deployments can be scripted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would an installation in Microsoft Azure be covered by a support contract, as long as the server version and database version are in compliance with your requirements?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roger, this is an ecosystem forum and I don't belong to Atlassian. When mentionning the support coverage, I was talking about Microsoft not supporting the Express edition, since it's a free edition.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.