APIで500エラーコードが帰ってくる件について

1,047 views
Skip to first unread message

竹内康夫

unread,
Feb 19, 2015, 3:19:51 AM2/19/15
to redmine-...@googlegroups.com
現在、新規チケット作成をREST APIを用いて実現しようとしております。

RESTClientを用いて下記の情報をPOSTすると500エラーコードが返ってきます。
解決方法があればご教示頂きたいです。


<リクエスト>
【Method】POST
【headder】
Content-Type:application/xml
【Body】
<?xml version="1.0" encoding="UTF-8"?><project id="1" name="TaskControl"/><tracker id="4" name="TASK"/><status id="1" name="InBox"/><priority id="2" name="Mid"/><subject>テスト2</subject><description>テストだよ</description></issue>

<レスポンス>
  1. Status Code: 500 Internal Server Error
  2. Connection: close
  3. Content-Length: 648
  4. Content-Type: text/html; charset=utf-8
  5. Date: Thu, 19 Feb 2015 08:17:48 GMT
  6. Server: thin 1.6.1 codename Death Proof
  7. X-Frame-Options: SAMEORIGIN
  8. X-Rack-Cache: invalidate, pass
  9. X-Request-Id: 6dcc5c7c07e890fefd0dc682b62a5f99
  10. X-Runtime: 0.049003

<環境情報>
・Windows7 64bit
・Redmine 2.6.1.stable

尚、既存チケットの取得はGETで取得できています。

<リクエスト>
【Method】GET
【headder】
Content-Type:application/xml

<レスポンス>
<?xml version="1.0" encoding="UTF-8"?><issues total_count="1" offset="0" limit="25" type="array"><issue><id>1</id><project id="1" name="TaskControl"/><tracker id="4" name="TASK"/><status id="1" name="InBox"/><priority id="2" name="Mid"/><author id="1" name="YasuoTakeuchi"/><assigned_to id="1" name="YasuoTakeuchi"/><subject>テスト</subject><description>テストだよ</description><start_date>2015-02-13</start_date><due_date/><done_ratio>0</done_ratio><is_private>false</is_private><estimated_hours>3.0</estimated_hours><created_on>2015-02-13T09:30:40Z</created_on><updated_on>2015-02-13T09:30:40Z</updated_on><closed_on/></issue></issues>


吉田圭伸

unread,
Feb 23, 2015, 11:27:51 PM2/23/15
to redmine-...@googlegroups.com
的外れでしたらすみません。
<issue>の開始タグがないように見えますがこれは関係ないでしょうか。

2015年2月19日木曜日 17時19分51秒 UTC+9 竹内康夫:
Reply all
Reply to author
Forward
0 new messages