-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"We're sorry, but something went wrong." in development mode #11063
Comments
@istana can you please upload an isolated sample application to GitHub to reproduce the issue? |
Finally I know why.... problem is 'ň' in the path. I tried few non-acsii characters (ľ, á) and none worked. Also tried every combination of ruby 1.9.3, 2.0.0, rvm and rbenv. I don't know, if this is issue, but I thought Ruby (or Rails?) is UTF-8 compatible and behaviour is really weird. See for yourself: http://i.imgur.com/sg1chbG.png @senny what do you think? |
Make sure that your browser is properly escaping the character. Don't trust the URI bar, check the logs. Also, http://stackoverflow.com/questions/2504564/can-http-uris-have-non-ascii-characters I'm pretty sure this isn't a bug. |
Problem is related to filesystem path, not URIs. If application is located in /home/user/čosi/application it shows logs like in production mode while in development mode. If I rename it to /home/user/cosi/application it works just fine. |
I have created demo app: https://github.com/istana/test_err500 |
Ahhh. We have a ticket related to filepaths having a |
@steveklabnik #6010 but I think this is different - looks like it may be an encoding issue rather than a glob escaping issue. |
I'll take a look and report back. |
I can confirm this is an encoding problem. It's related to the backtrace generated when you have non-ascii characters in your file paths. Here is a simplified reproduction: https://gist.github.com/senny/5857653 |
I had the same problem but only on some routes in the app. Sorry if this is not the best solution, but it worked for me. (for now) |
@senny, I have the same issue with slim templates and don't have any special characters in file path. Haml's |
hello I am having a somewhat similar issue in production mode, this is the same log i get We're sorry, but something went wrong. If you are the application owner check the logs for more information. My application works perfectly in development mode. |
in the server log there is this error [blog]$ rails s -e production |
@Hussein1147 what do you get in development mode at the root url? The welcome to rails page? |
yes, in development mode i get the rails welcome page at the root directory. |
@Hussein1147 that's the reason you see the error in production - that welcome page is only enabled in development mode to help you get started. You really should be adding a root url page of your own before deploying your website to production. |
how would you go about adding a root url page? |
@pixeltrix so i have added a root url, and it shows the root url but whenever i run rails s -e production, i throws: |
problem solved, thank you for the help |
I think we can close this one. Thanks for reporting anyway @Hussein1147! :-) |
Can anyone advise to printercu's comment above? I'm having this issue as well. |
you should reopen an issue |
you probably need to and a root directory in you routes file. it goes something like this: |
It is not big deal you have to run: |
Hey everyone. I had the same problem and Yes ArtoriusXIII you are right. Just run the following command in your terminal, icloud9 terminal whatsoever: |
I have the same problem (am in development mode but get "sorry something went wrong"). |
@amadeuspagel if you believe you've found a bug in Rails then please open a new issue with details on how to reproduce it. However most people on this issue had a misconfigured application so please try to get help via stack overflow, irc, etc. first as it's likely that's your problem too. This issue tracker is purely for bugs and development (not discussion) of new features - thanks. |
Same issue, no configuration problem found ! |
The original issue should be fixed for years. @faizaankhan could you please verify if the problem is with non-ascii characters in filepaths or something else? |
The file paths are all okay, I had a complete check. I missed something during rails 5.2 update perhaps. |
I can verify that, if the the .erb files contains non ascii characters in a scriptlet (see below), <%= form_with url: “/post”, scope: “post” do |form| %>
<%= form.submit 'Play!', class: 'button' %>
<% end %> notice in the first line I think this is an important ugly issue probably simple to solve so I recommend this issue is re-open. Versions used:
Do you think I should open a new issue to report this particular problem separately ? |
@cancerberoSgx I'd say it's better to create a new issue so it can get some attention, and reference this one. |
Rails throws
But in development mode (log level is debug, all_requests_considered_local) it should display backtrace with informations.
Problem occurs when render is called fom controller or view and view (or partial) is misformatted (tested on slim, haml and erb) or somehow throws error. Does this with RC2 and master as well.
Whole log for request look like this:
The text was updated successfully, but these errors were encountered: