ActionView::Template::Error
app/models/analyzer.rb:14
invalid byte sequence in UTF-8
Backtrace
app/models/analyzer.rb:14:in `strip'
app/models/analyzer.rb:14:in `block in initialize'
app/models/analyzer.rb:13:in `each'
app/models/analyzer.rb:13:in `each_with_object'
app/models/analyzer.rb:13:in `initialize'
app/models/analyzer.rb:104:in `new'
app/models/analyzer.rb:104:in `initialize'
app/models/analyzer.rb:360:in `new'
app/models/analyzer.rb:360:in `analyze_code'
app/models/analyzer.rb:365:in `analyze'
app/models/gem_info.rb:25:in `block in analyze'
app/models/gem_info.rb:22:in `each'
app/models/gem_info.rb:22:in `analyze'
app/models/gem_info.rb:14:in `initialize'
app/models/gem_spec.rb:295:in `new'
app/models/gem_spec.rb:295:in `info'
app/models/gem_spec.rb:78:in `modules'
app/models/gem_spec.rb:123:in `top_level_modules'
app/views/gems/show.html.erb:3:in `_app_views_gems_show_html_erb__2624042750563110764_489980'
vendor/ruby-3.3.0/lib/ruby/3.3.0/benchmark.rb:313:in `realtime'
Request
| Name | GemsController#show |
| Method | GET |
| URL | https://gem.sh/gems/actionpack/v2.1.2 |
| Browser |
Parameters
{
"gem": "actionpack",
"action": "show",
"version": "2.1.2",
"controller": "gems"
}
Headers
| Via | 2.0 heroku-router |
| Host | gem.sh |
| Accept | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
| Server | Heroku |
| Referer | https://gem.sh/gems/actionpack/v2.1.2 |
| Version | HTTP/1.1 |
| Sec-Ch-Ua | "Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 |
| X-Request-Id | 301af62a-d239-ab6f-a34a-ddc8dc8378d2 |
| Sec-Fetch-Dest | document |
| Sec-Fetch-Mode | navigate |
| Sec-Fetch-Site | none |
| Sec-Fetch-User | ?1 |
| Accept-Encoding | gzip, deflate, br |
| Accept-Language | zh-CN,zh;q=0.9,en;q=0.8,*;q=0.1 |
| X-Forwarded-For | 43.143.148.163 |
| X-Request-Start | 1782502587786 |
| Sec-Ch-Ua-Mobile | ?0 |
| X-Forwarded-Port | 443 |
| X-Forwarded-Proto | https |
| Sec-Ch-Ua-Platform | "Windows" |
| Upgrade-Insecure-Requests | 1 |
Environment
| os | Linux 6.17.0-1017-aws |
| cwd | /app |
| pid | 15 |
| host | web.1 |
| ruby | ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] |
| rails | 7.1.3.4 |
Server
| Load | CPU | RAM | Swap | Disk | |
|---|---|---|---|---|---|
| web.1 | Load avg 117% | CPU 79% | RAM 35% | Swap 2% | Disk 100% |