.NET API Problem creating Issue

Added by Iván Martín almost 6 years ago

This code is not working:

var newIssue = new Issue
{
Subject = "test",
Project = new IdentifiableName { Id = 35 },
Tracker = new IdentifiableName { Id = 38 },
Status = new IdentifiableName { Id = 1 },
Priority = new IdentifiableName { Id = 2 }
};
manager.CreateObject<Issue>(newIssue);

beacause of an "Internal server error". Any idea?

I am pretty sure that these are the mandatory fields and I previously validated the conexion (api key) by reading the previous issues.

Replies (6)

RE: .NET API Problem creating Issue - Added by Kush Suryavanshi almost 6 years ago

1) Did you enable REST Apis in redmine?
2) Also, can you provide the error logs?

RE: .NET API Problem creating Issue - Added by Iván Martín almost 6 years ago

Thank you so much for the repply Kush

Rest API is enabled, here is de error log

log.txt Magnifier (1.68 KB)

RE: .NET API Problem creating Issue - Added by Kush Suryavanshi over 5 years ago

I could be wrong but from the looks of it, this maybe related to SMTP issue or https issue(at least from google search). Are you using following framework?
http://www.redmine.org/projects/redmine/wiki/Rest_api_with_csharp
If so, may be I can try it on my machine.

RE: .NET API Problem creating Issue - Added by Iván Martín over 5 years ago

yes Kush, i'm using this framework

in the development environment there is no https configuration, so this can be a problem?

txs!!

RE: .NET API Problem creating Issue - Added by Kush Suryavanshi over 5 years ago

It shouldn't be...From looking at the logs and google search, it sounded like its one of those two issues. Anyways, I will reply you by tomorrow to see how it works with my environment.

RE: .NET API Problem creating Issue - Added by Iván Martín over 5 years ago

ok, thank you so much

(1-6/6)