我是Rest API建設redmine客戶端的新手。我試圖更新一個問題,以redmine服務器和服務器響應500內部服務器錯誤。 這是我的生產日誌。更新一個問題,以redmine服務器使用Rest API C#和獲得500內部服務器錯誤
Started PUT "/redmine/issues/7.xml" for 127.0.0.1 at 2015-10-21 16:13:38 +0700
Processing by IssuesController#update as XML
Parameters: {"issue"=>{"subject"=>"Stop test close", "notes"=>"My note", "private_notes"=>"false", "description"=>"Updated description", "is_private"=>"false", "project_id"=>"1", "priority_id"=>"4", "status_id"=>"2", "tracker_id"=>"2", "assigned_to_id"=>"1", "estimated_hours"=>"30", "done_ratio"=>"10", "start_date"=>"2015-10-12", "due_date"=>"2015-10-12", "updated_on"=>"2015-10-19", "uploads"=>nil, "custom_fields"=>nil}, "id"=>"7"}
Current user: user (id=1)
Completed 500 Internal Server Error in 32ms (ActiveRecord: 8.0ms)
NoMethodError (undefined method `inject' for nil:NilClass):
lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb:54:in `custom_fields='
app/models/issue.rb:372:in `assign_attributes_with_project_and_tracker_first'
app/models/issue.rb:495:in `safe_attributes='
app/controllers/issues_controller.rb:397:in `update_issue_from_params'
app/controllers/issues_controller.rb:176:in `update'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
請幫幫我。 謝謝!
你使用任何插件? – Nanego
不,我不是。我認爲一些字段有空值,所以它發生了。 –