Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST-API failed(redmine-tags,projects.json) #60

Open
y503unavailable opened this issue Dec 31, 2021 · 1 comment
Open

REST-API failed(redmine-tags,projects.json) #60

y503unavailable opened this issue Dec 31, 2021 · 1 comment

Comments

@y503unavailable
Copy link
Owner

REST-APIが失敗する場合がある(projects.json)

Started GET "/redmine/projects.json?key=APIKEY

Processing by ProjectsController#index as JSON
Parameters: {"offset"=>"0", "limit"=>"100", "key"=>"****"}
Current user: admin (id=1)
STATEMENT (projects.status IN ('1'))
Rendering projects/index.api.rsb
Rendered projects/index.api.rsb (106.5ms)
Completed 500 Internal Server Error in 117ms (ActiveRecord: 2.7ms)

ActionView::Template::Error (undefined method `render_api_redmine_tags' for #<#Class:0x00007f57d32f6098:0x00007f57d1e9cc28>
Did you mean? render_api_includes):
13: render_api_custom_values project.visible_custom_field_values, api
14: render_api_includes(project, api)
15:
16: api.created_on project.created_on
17: api.updated_on project.updated_on
18: end
19: end

app/views/projects/index.api.rsb:16:in block (4 levels) in _app_views_projects_index_api_rsb___469728308491098654_12918860' lib/redmine/views/builders/structure.rb:73:in method_missing'
app/views/projects/index.api.rsb:3:in block (3 levels) in _app_views_projects_index_api_rsb___469728308491098654_12918860' app/views/projects/index.api.rsb:2:in each'
app/views/projects/index.api.rsb:2:in block (2 levels) in _app_views_projects_index_api_rsb___469728308491098654_12918860' lib/redmine/views/builders/structure.rb:34:in array'
app/views/projects/index.api.rsb:1:in block in _app_views_projects_index_api_rsb___469728308491098654_12918860' lib/redmine/views/builders.rb:36:in for'
app/views/projects/index.api.rsb:1:in _app_views_projects_index_api_rsb___469728308491098654_12918860' plugins/redmine_per_project_formatting/lib/redmine_per_project_formatting/application_controller_patch.rb:24:in block in change_text_formatting'
plugins/redmine_per_project_formatting/lib/redmine_per_project_formatting/setting_patch.rb:19:in within_text_formatting' plugins/redmine_per_project_formatting/lib/redmine_per_project_formatting/application_controller_patch.rb:23:in change_text_formatting'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

@y503unavailable
Copy link
Owner Author

エラー時のログ上で関連する redmine_per_project_formattingとredmine_tagsプラグインを一時的に除外して切り分けた。
結果的に、redmine_tagsプラグインを除外する(pluginsから移動して再起動)と、RESTAPIが正常に動作することを確認した。
githubに同一状況のissueがあり、
ixti/redmine_tags#222

下記の lib/redmine_tags/patches/add_helpers_for_issue_tags_patch.rb を1行修正することで動作した。
yzzy/redmine_tags@4c3a04d

@y503unavailable y503unavailable changed the title REST-APIが失敗する場合がある(projects.json) REST-API failed(projects.json) Dec 31, 2021
@y503unavailable y503unavailable changed the title REST-API failed(projects.json) REST-API failed(redmine-tags,projects.json) Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant