Project

General

Profile

Script to import issues via REST API in private project

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

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

I am impressed with your site content. I think this is an informative post and it is very helpful and knowledgeable. Thank you for sharing. https://www.acquirelanguage.com.au Japanese Tutor

final-dream - Added by final dream about 1 month ago

I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. https://www.final-dream.com

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

Hi, I read this article and its very helpful to know about this.http://www.callgirlsservicesdelhi.com/dwarka-escort.html

healthtipstoday - Added by healthtips today about 1 month ago

Thanks for your information, it was really very helpfull. https://www.healthtipstoday.net

aerosoftseo - Added by aerosoft seo about 1 month ago

This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. https://www.aerosoftseo.com

AutoSmithCars - Added by AutoSmith Cars 29 days ago

Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work. https://www.AutoSmithCars.com

topentertainmentblog - Added by topentertainment blog 28 days ago

Thanks for your information, it was really very helpfull. https://www.topentertainmentblog.com

automatedmoneynow - Added by automatedmoney now 27 days ago

Thank you very much for this useful article. I like it. https://www.automatedmoneynow.com

RE: Script to import issues via REST API in private project - Added by digitinc digitinc 27 days ago

Thank you for this blog. You clearly know a great deal of about the niche, you have covered a multitude of bases. Great material from this the main internet. All over again, thank you for the blog.https://www.houzeo.com/FOR-SALE-BY-OWNER Sell home by owner

how to for sale by owner - Added by digitinc digitinc 22 days ago

Thanks for sharing such a useful post. I really like this post. The message here will surely be of some help to me. I just tripped upon your blog and desired to say that I have really enjoyed reading your blog stations. Very useful and informative. https://www.houzeo.com/blog/how-to-list-on-the-mls how to for sale by owner

RE: Script to import issues via REST API in private project - Added by Ishika Sharma 19 days ago

Thanks for sharing this blog with us. You give every deatils and I am Ishika Sharma and female escorts in delhi visit my website - [[http://sharmadelhiescorts.blogspot.com]]

RE: Script to import issues via REST API in private project - Added by zoya Khan 19 days ago

Welcome to Delhi and looking for a beautiful escort girl for fun and enjoyment, I am pooja 9773622641
an Independent Delhi Call Girls. We Provide the best Female escorts services in Delhi Delhi to all gentleman and hot guys, available 24x7.

For more info click this link:-

[[http://nightangleescorts.blogspot.com]]

Coolsculpting Las Vegas - Added by digitinc digitinc 15 days ago

Thanks for the wonderful share. Thanks for sharing valuable familiarity with all of us, I feel strongly that love and read more on this topic. Looking to holding your next post. http://www.CelebritySkinSpa.com Coolsculpting Las Vegas

RE: Script to import issues via REST API in private project - Added by pinjaman jaminan bpkb mobil adira finance 15 days ago

http://puckett09boesen.nation2.com/the-biggest-launch-of-the-century-about-payday-loans
http://b3.zcubes.com/v.aspx?mid=1340029
https://boesen60boesen.home.blog/2019/08/04/the-biggest-launch-of-the-century-about-payday-loans/
https://www.minds.com/blog/view/1004794845517258752
https://hebert28hebert.bladejournal.com/post/2019/08/04/What-You-Need-To-Know-About-Payday-Loans
https://hebert36mckenna.werite.net/post/2019/08/04/The-biggest-launch-of-the-century-About-Payday-Loans
https://penzu.com/p/87083b97
https://write.as/6tcykj6c14t7r
https://www.openlearning.com/u/hebert89hebert/blog/HowItAllStartedAboutPaydayLoans/
https://voigt06mckenna.bravejournal.net/post/2019/08/04/How-it-all-started-About-Payday-Loans
https://www.evernote.com/shard/s610/sh/5afabcb5-4f08-494b-8215-2eabe36d33a5/e409a0becba8350bd078045e0f341169
https://disqus.com/home/discussion/channel-new/what_you_need_to_know_about_payday_loans/
http://mckenna89puckett.iktogo.com/post/how-it-all-started-about-payday-loans
http://puckett09boesen.nation2.com/what-you-need-to-know-about-payday-loans
http://b3.zcubes.com/v.aspx?mid=1340033
https://boesen60boesen.home.blog/2019/08/04/how-it-all-started-about-payday-loans/
https://www.minds.com/blog/view/1004795340031418368
https://hebert28hebert.bladejournal.com/post/2019/08/04/How-it-all-started-About-Payday-Loans2
https://penzu.com/p/84cab815
https://hebert36mckenna.werite.net/post/2019/08/04/How-it-all-started-About-Payday-Loans
https://www.openlearning.com/u/hebert89hebert/blog/TheBiggestLaunchOfTheCenturyAboutPaydayLoans/
https://write.as/28yw7ksjswx1w
http://casathome.ihep.ac.cn/team_display.php?teamid=64884
https://voigt06mckenna.bravejournal.net/post/2019/08/04/The-biggest-launch-of-the-century-About-Payday-Loans3
https://disqus.com/home/discussion/channel-new/how_it_all_started_about_payday_loans/
https://www.evernote.com/shard/s610/sh/d823f2fc-39ec-460e-8bfb-202d222d5e04/9e153254f9b98ae80bf3de7026597442
http://mckenna89puckett.iktogo.com/post/how-it-all-started-about-payday-loans-1564938006
http://puckett09boesen.nation2.com/how-it-all-started-about-payday-loans2
http://b3.zcubes.com/v.aspx?mid=1340030
https://boesen60boesen.home.blog/2019/08/04/what-you-need-to-know-about-payday-loans/
https://hebert28hebert.bladejournal.com/post/2019/08/04/The-biggest-launch-of-the-century-About-Payday-Loans
https://www.minds.com/blog/view/1004794918488285184
https://penzu.com/p/4f9d6a29
https://www.openlearning.com/u/hebert89hebert/blog/WhatYouNeedToKnowAboutPaydayLoans/
https://write.as/4f9f42vnyqjlo
https://hebert36mckenna.werite.net/post/2019/08/04/The-biggest-launch-of-the-century-About-Payday-Loans2
https://voigt06mckenna.bravejournal.net/post/2019/08/04/The-biggest-launch-of-the-century-About-Payday-Loans2
https://www.evernote.com/shard/s610/sh/e11e650d-ad87-4963-8537-41bf8eeeb0fb/ac32543e4f3468699523c101876c047c
http://mckenna89puckett.iktogo.com/post/what-you-need-to-know-about-payday-loans
http://puckett09boesen.nation2.com/how-it-all-started-about-payday-loans
http://b3.zcubes.com/v.aspx?mid=1340031
https://boesen60boesen.home.blog/2019/08/04/what-you-need-to-know-about-payday-loans-2/
https://www.minds.com/blog/view/1004794895330795520
https://hebert28hebert.bladejournal.com/post/2019/08/04/How-it-all-started-About-Payday-Loans
https://hebert36mckenna.werite.net/post/2019/08/04/What-You-Need-To-Know-About-Payday-Loans
https://penzu.com/p/2e747e9c
https://voigt06mckenna.bravejournal.net/post/2019/08/04/The-biggest-launch-of-the-century-About-Payday-Loans2
https://www.openlearning.com/u/hebert89hebert/blog/TheBiggestLaunchOfTheCenturyAboutPaydayLoans0/
https://write.as/umqxptbqzut3f
http://mckenna89puckett.iktogo.com/post/how-it-all-started-about-payday-loans-1564938008
https://disqus.com/home/discussion/channel-new/what_you_need_to_know_about_payday_loans_78/
https://www.evernote.com/shard/s610/sh/306cb371-e1cc-46fd-8e39-75cd01ef754e/cff91e30122d460bab757c3a896b2e20

(26-39/39)