Redmine is unable to register tickets via REST API

Asked 2 years ago, Updated 2 years ago, 87 views

Redmine tries to register a ticket via REST API, but cannot register with error 422.
I'm POSTing in xml format, but the body doesn't seem to be defective.
Is there something missing?

Ruby's source code has failed, but it also fails using Firefox's add-on (RESTClient).

URL
http://IP address/issues.xml?key=key value
ブラウザVerified that the browser can access it with http://IP address/issues.xml

Body As you can see in the image↓
Enter a description of the image here

US>Error Content (Body Section)
As you can see in the image↓
Enter a description of the image here

redmine

2022-09-30 21:18

2 Answers

According to Redmine's official API specification,
There is no status field, but status_id .
Why don't you check it out?

http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Creating-an-issue


2022-09-30 21:18

I had the same symptom, but I changed HTTP header to "Content-Type: application/xml"
Corrected and completed successfully.(The reason seems to be that I used the original "application/x-www-form-urlencoded" as it was.)
If you get error 422, there is a high possibility that the XML recognition has failed.
I wrote it for information sharing.


2022-09-30 21:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.