Windows Rails 4.2에서 ASCII URL이 아닌 경우 오류 발생
6553 단어 thin
묘사
Unexpected error while processing request: "\x80" on Windows-31J
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:34:in `file?'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:34:in `block in match?'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:31:in `each'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:31:in `detect'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:31:in `match?'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:107:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.6.0/lib/rack/sendfile.rb:
113:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.
rb:518:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/applica
tion.rb:164:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
.rb:194:in `public_send'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
.rb:194:in `method_missing'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:86:in `block in pre_process'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:84:in `catch'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:84:in `pre_process'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:53:in `process'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:39:in `receive_data'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
ine.rb:187:in `run_machine'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
ine.rb:187:in `run'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/backends/bas
e.rb:73:in `start'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/server.rb:16
2:in `start'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/controllers/
controller.rb:87:in `start'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:20
0:in `run_command'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:15
6:in `run!'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/bin/thin:6:in `<top (
required)>'
c:/Ruby200-x64/bin/thin:23:in `load'
c:/Ruby200-x64/bin/thin:23:in `<main>'
토론 #1
Unexpected error while processing request: "\x87" followed by "." on Windows-31J
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:34:in `file?'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:34:in `block in match?'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:31:in `each'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:31:in `detect'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:31:in `match?'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/actionpack-4.2.1/lib/action_disp
atch/middleware/static.rb:107:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rack-1.6.0/lib/rack/sendfile.rb:
113:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/engine.
rb:518:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/applica
tion.rb:164:in `call'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
.rb:194:in `public_send'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.2.1/lib/rails/railtie
.rb:194:in `method_missing'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:86:in `block in pre_process'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:84:in `catch'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:84:in `pre_process'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:53:in `process'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/connection.r
b:39:in `receive_data'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
ine.rb:187:in `run_machine'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmach
ine.rb:187:in `run'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/backends/bas
e.rb:73:in `start'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/server.rb:16
2:in `start'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/controllers/
controller.rb:87:in `start'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:20
0:in `run_command'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:15
6:in `run!'
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.3/bin/thin:6:in `<top (
required)>'
c:/Ruby200-x64/bin/thin:23:in `load'
c:/Ruby200-x64/bin/thin:23:in `<main>'
토론 #2
궤도 4-2 - 안정 브랜치 포함https://github.com/rails/rails/commit/4df216cb12e35c09ae5ec271755e581d692d0326 .Reference
이 문제에 관하여(Windows Rails 4.2에서 ASCII URL이 아닌 경우 오류 발생), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/macournoyer/thin/issues/268텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)