Skip to content
GitLab
项目 群组 主题 代码片段
  • /
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
  • 登录
  • L large
  • 项目信息
    • 项目信息
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者统计
    • 分支图
    • 比较修订版本
  • 议题 21
    • 议题 21
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 12
    • 合并请求 12
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 产物
    • 计划
  • 部署
    • 部署
    • 环境
    • 发布
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包库
    • 容器镜像库
    • Terraform 模块
    • 模型实验
  • 监控
    • 监控
    • 事件
  • 分析
    • 分析
    • 价值流
    • CI/CD
    • 仓库
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • 王权利
  • large
  • 议题
  • #2976

Error 500 when opening the "commits" tab of a repo.

Created by: scaryzet

I've pushed a new repo (previously hosted on gitosis) and when I'm trying to view the list of commits, I'm getting error 500. It's saying "Encoding Error. Page can't be loaded because of an encoding error."

I think the reason is that there are some commits with "bad" usernames in the repo. They show up as Author: unknown <<D1><E0><E2><E5><EB><E8><E9>@2PHP.(none)> in the output of git log.

We're on 4.1 stable.

Here's the error log:

Started GET "/username/repo/commits/master" for 127.0.0.1 at 2013-02-13 11:51:40 +0400
Processing by CommitsController#show as HTML
Parameters: {"project_id"=>"username/repo", "id"=>"master"}
Rendered shared/_ref_switcher.html.haml (1.5ms)
Rendered commits/_head.html.haml (5.1ms)
Rendered commits/_commit.html.haml (6.8ms)
Rendered commits/_commit.html.haml (2.0ms)
Rendered commits/_commits.html.haml (14.8ms)
Rendered commits/show.html.haml within layouts/project_resource (20.5ms)
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/views/commits/_commit.html.haml:1:in `_app_views_commits__commit_html_haml__1519872021119091620_34791860'
app/views/commits/_commits.html.haml:6:in `block in _app_views_commits__commits_html_haml__2150839068330274607_34621020'
app/views/commits/_commits.html.haml:1:in `each'
app/views/commits/_commits.html.haml:1:in `_app_views_commits__commits_html_haml__2150839068330274607_34621020'
app/views/commits/show.html.haml:8:in `_app_views_commits_show_html_haml__711792529393499623_33777560'
app/controllers/commits_controller.rb:18:in `show'
Rendered errors/encoding.html.haml within layouts/errors (0.1ms)
Rendered layouts/_head.html.haml (1.4ms)
Rendered layouts/_flash.html.haml (0.1ms)
Rendered layouts/_search.html.haml (15.8ms)
Rendered layouts/_init_auto_complete.html.haml (3.8ms)
Rendered layouts/_head_panel.html.haml (23.1ms)
Completed 500 Internal Server Error in 83ms (Views: 24.9ms | ActiveRecord: 1.8ms)
指派人
分配到
工时统计