Project

General

Profile

Script to import issues via REST API in private project

Added by Victor Sergienko about 7 years ago

I'm trying to create an issue via POST request to hostedredmine.com API in Python 3 like:

url = "https://www.hostedredmine.com/issues.json" 
key = "***" 

def createIssue(body):
    body = {'issue': body}
    data = urllib.parse.urlencode({'issue': body})
    data = data.encode('utf-8')
    request = urllib.request.Request(url)

    # adding charset parameter to the Content-Type header.
    request.add_header("Content-Type", "application/json")
    request.add_header("X-Redmine-API-Key", key)
    #request.add_header("Content-Length", len(data))

    f = urllib.request.urlopen(request, data)
    print(f.read().decode('utf-8'))

createIssue({
    'project_id': 'plando',
    'subject': 'test1',
    'notes': 'tetest',
     #'parent_issue_id': '215453',
    }
)

and getting a HTTP Error 500: Internal Server Error.

I've tried various URLs, with and without .json suffix or my project path.

Does anybody have any idea, what could it be?


Replies (204)

RE: Script to import issues via REST API in private project - Added by Robert wilson 8 days ago

Epson epson.com/support Printer Driver. This driver allows you to print to an Epson email-enabled printer anywhere in the world right from your computer. Important: In addition to the Epson Connect Printer Setup Utility above, this driver is required for remote printing. Not sure if have a 32-bit or 64-bit edition of Windows.

RE: Script to import issues via REST API in private project - Added by Robert wilson 8 days ago

The 123.hp.com/setup is actually a website which is set up by HP technicians to help people set up their HP Printer by downloading the printer drivers and other software through this website.

123.hp.com/setup | 123hp.com/setup
123.hp.com/setup | 123hp.com/setup

RE: Script to import issues via REST API in private project - Added by Robert wilson 8 days ago

Webroot antivirus software is good and did well in our ratings. It offers basic protection at a low price, which is great for some users. ... If you're looking to save money on antivirus software and need standard features like cloud storage and a password manager, Webroot should be on your short list. webroot.com/secure

RE: Script to import issues via REST API in private project - Added by Robert wilson 8 days ago

Available with McAfee Total Protection for 10 devices, McAfee ® Safe Family provides robust parental controls for your kids’ Windows PCs and Android/iOS devices. Packed with useful features, Safe Family gives you an extra set of hands to juggle your kids’ digital lives, from helping them build good habits to managing their app usage and online time.
mcafee.com/activate | www.mcafee.com/activate

(201-204/204)