I found a very weird problem/bug with open-uri today. In my application
I have this line:
html_file = open(@story.url)
It raises this Exception:
OpenURI::HTTPError - 404 Not Found
This is the url: jwak.net - This website is for sale! - jwak Resources and Information. . There’re no problems with
it. Moreover if I execute the same thing in the console (script/console)
- it just works as expected. I start both - the server and the console
in dev.mode .
When the “open” method is executed through the application it returns
this objects as response: (inside open-uri lib).
When I call open in the console the response insite open-uri lib is:
I’ll appreciate any help about where the problem could be. 10x in