You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if a user tries to submits and uploads their compiled .exe instead of their source file, it causes a 500 Internal Server Error (invalid byte sequence in UTF-8). We should instead display a helpful error message. (Note that this error could also happen if the source file has the wrong encoding.)
Log:
Completed 500 Internal Server Error in 112ms (ActiveRecord: 58.2ms)
invalid byte sequence in UTF-8 excluded from capture: DSN not set
ArgumentError (invalid byte sequence in UTF-8):
app/controllers/problems_controller.rb:90:in `block in submit'
app/controllers/problems_controller.rb:89:in `submit'
Rendered /home/user/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.4ms)
Rendered /home/user/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.2ms)
Rendered /home/user/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
Rendered /home/user/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (60.6ms)
The text was updated successfully, but these errors were encountered:
Currently, if a user tries to submits and uploads their compiled .exe instead of their source file, it causes a 500 Internal Server Error (invalid byte sequence in UTF-8). We should instead display a helpful error message. (Note that this error could also happen if the source file has the wrong encoding.)
Log:
The text was updated successfully, but these errors were encountered: