客户分支查看时,显示500,错误为 incompatible character encodings: UTF-8 and ASCII-8BIT
Summary
@entang
客户的版本是15.11.2-jh
从客户得知在查看某分支时,显示500错误。
相关代码 app/views/projects/commits/_commit.html.haml#L65
错误日志为
severity”:“ERROR”,“time”:“2023-06-01T07:57:33.337Z”,“correlation_id”:“01H1TZCGF3A298EZPAB5MCENVM”,
“exception.class”:“Encoding::CompatibilityError”,“exception.message”:“incompatible character encodings: UTF-8 and ASCII-8BIT”,“exception.backtrace”:
[“app/views/projects/commits/_commit.html.haml:65”,“app/views/projects/commits/_commits.html.haml:20",“app/views/projects/commits/_commits.html.haml:10:in `\u003c\u003c’“,”app/views/projects/commits/_commits.html.haml:10:in `each’“,”app/views/projects/commits/_commits.html.haml:10:in `each’“,”
Click to expand detail
severity”:“ERROR”,“time”:“2023-06-01T07:57:33.337Z”,“correlation_id”:“01H1TZCGF3A298EZPAB5MCENVM”,“exception.class”:“Encoding::CompatibilityError”,“exception.message”:“incompatible character encodings: UTF-8 and ASCII-8BIT”,“exception.backtrace”:[“app/views/projects/commits/_commit.html.haml:65”,“app/views/projects/commits/_commits.html.haml:20",“app/views/projects/commits/_commits.html.haml:10:in `\u003c\u003c’“,”app/views/projects/commits/_commits.html.haml:10:in `each’“,”app/views/projects/commits/_commits.html.haml:10:in `each’“,”app/views/projects/commits/_commits.html.haml:10:in `each’“,”app/views/projects/commits/_commits.html.haml:10",“app/views/projects/commits/show.html.haml:38”,“app/controllers/application_controller.rb:142:in `render’“,”app/controllers/application_controller.rb:573:in `block in allow_gitaly_ref_name_caching’“,”lib/gitlab/gitaly_client.rb:352:in `allow_ref_name_caching’“,”app/controllers/application_controller.rb:572:in `allow_gitaly_ref_name_caching’“,”ee/lib/gitlab/ip_address_state.rb:10:in `with’“,”ee/app/controllers/ee/application_controller.rb:45:in `set_current_ip_address’“,”app/controllers/application_controller.rb:524:in `set_current_admin’“,”lib/gitlab/session.rb:11:in `with_session’“,”app/controllers/application_controller.rb:515:in `set_session_storage’“,”lib/gitlab/i18n.rb:107:in `with_locale’“,”lib/gitlab/i18n.rb:113:in `with_user_locale’“,”app/controllers/application_controller.rb:506:in `set_locale’“,”app/controllers/application_controller.rb:499:in `set_current_context’“,”lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call’“,”lib/gitlab/middleware/memory_report.rb:13:in `call’“,”lib/gitlab/middleware/speedscope.rb:13:in `call’“,”lib/gitlab/database/load_balancing/rack_middleware.rb:23:in `call’“,”
由 TianLu 编辑于