4 ms·
You should configure your Rails application correctly for production. Right now it seems like it's considering all requests as local and returning the Rails exc
by pkd 7y ago
You should configure your Rails application correctly for production. Right now it seems like it's considering all requests as local and returning the Rails exception page to me.
- daviducolo 7y agocan you send me an example of your request?
- pkd 7y agoAbsolutely. I'm talking about things that should 404 are actually raising exceptions. E.g. https://feedi.me/popular https://feedi.me/popular. I hit this link by mistake but that should return a 404 and not the exception page from Rails.
- pkd 7y agoThis generally happens because config.consider_all_requests_local is set to true in production env. By default it should only be true in development and test.
- daviducolo 7y agoyes because the correct request is https://feedi.me/feeds/popular https://feedi.me/feeds/popular not "https://feedi.me/popular" https://feedi.me/popular"
- pkd 7y agoYes I understand that. But visiting your Rails app shouldn't bubble up the debugging info to your visitor in production.
- daviducolo 7y agoif you try this https://feedi.me/search/entries?q=SEO&page=2 https://feedi.me/search/entries?q=SEO&page=2 you receive an exception because Total are 10. I must improve exception management