Project

General

Profile

Script to import issues via REST API in private project

Added by Victor Sergienko almost 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 (184)

RE: Script to import issues via REST API in private project - Added by Lita Copeland about 1 month ago

I am so happy to see this kind of brilliant informative post because all the details are very awesome and very interesting.
https://www.digitalhikes.nz/

RE: Script to import issues via REST API in private project - Added by mumbai beautygirls about 1 month ago

http://www.escortservicesmumbai.com/
http://escortservicesmumbai.com/mumbaiescorts/
http://www.escortservicesmumbai.com/mumbai-escorts.html
http://escortservicesmumbai.com/mumbai-escorts-service.html
http://www.escortservicesmumbai.com/call-girls-in-mumbai.html
http://www.escortservicesmumbai.com/mumbai-call-girls.html
http://www.escortservicesmumbai.com/mumbai-escorts-service.html
http://www.escortservicesmumbai.com/mumbai-independent-escorts.html
http://www.escortservicesmumbai.com/Mumbai-hotel-Escorts.html
http://www.escortservicesmumbai.com/escort-services-in-mumbai.html
http://www.escortservicesmumbai.com/high-class-mumbai-independent-escorts.html
http://www.escortservicesmumbai.com/cheap-mumbai-escorts-service.html
http://www.escortservicesmumbai.com/mumbai-independent-escorts-service.html
http://www.escortservicesmumbai.com/Decent-Mumbai-Escorts-Female.html
http://www.escortservicesmumbai.com/navi-mumbai-escorts.html
http://www.escortservicesmumbai.com/andheri-escorts-service.html
http://www.escortservicesmumbai.com/bandra-escorts.html
http://www.escortservicesmumbai.com/juhu-escorts.html
http://www.escortservicesmumbai.com/kurla-escorts.html
http://www.escortservicesmumbai.com/powai-escorts.html
http://www.escortservicesmumbai.com/escorts-in-andheri.html
http://www.escortservicesmumbai.com/bandra-call-girls.html
http://www.escortservicesmumbai.com/juhu-call-girls.html
http://www.escortservicesmumbai.com/navi-mumbai-call-girls.html
http://www.escortservicesmumbai.com/kurla-call-girls.html
http://www.escortservicesmumbai.com/powai-call-girls.html
http://escortservicesmumbai.com/escorts-in-andheri.html

RE: Script to import issues via REST API in private project - Added by the b2bcrowd about 1 month ago

TheB2BCrowd mission is to share and grow the world’s knowledge. A vast amount of the knowledge that would be valuable to many people is currently only available to a few — either locked in people’s heads, or only accessible to select groups. https://theb2bcrowd.com/

RE: Script to import issues via REST API in private project - Added by Angela Angie 26 days ago

Nice post
thanks for sharing this with all of us, here i want to say that, I am angela Angie, my company provides technical support to customers who have any issue with their laptop & computer(hardware and software), and printer etc. Our technicians who have more knowledge about it, will help you in resolving your issue properly within minute, available 24*7.
+*Epson Klantenservice Belgie*+
you can get instant support for any query here .....https://telefoonnummerbelgie.com/epson/

(176-184/184)