Rails An existing connection was forcibly closed by the remote host

roam · November 01, 2012 · Last by Roam replied at November 02, 2012 · 11865 hits

请问这是什么样的错误,如何解决?下面是运行的 log Started POST "/checkmen/import" for 127.0.0.1 at 2012-11-01 13:41:56 +0800 Processing by CheckmenController#upload as HTML Parameters: {"数据省略 "} Redirected to http://localhost:3000/checkmen/import Completed 302 Found in 6ms (ActiveRecord: 0.0ms) [2012-11-01 13:41:56] ERROR Errno::ECONNRESET: An existing connection was forcibly closed by the remote host. c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:80:in eof?' c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:80:in run' c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/server.rb:191:in block in start_thread'

Started GET "/checkmen/import" for 127.0.0.1 at 2012-11-01 13:41:56 +0800 Processing by CheckmenController#import as HTML Rendered checkmen/import.html.erb within layouts/application (2.0ms) Completed 200 OK in 22ms (Views: 22.0ms | ActiveRecord: 0.0ms)

是一个上传文件的 action,upload 的时候总是不成功,报错

rails 应该如何 debug?

你本地用的 webrick 还是 nginx/apache?试一下传一个很小的文件看会不会出错

#3 楼 @allenwei webrick ,在 IE 上会出错,但是在 chome 就不会报这个错误

You need to Sign in before reply, if you don't have an account, please Sign up first.