Hi all,
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: http://jwak.net/media/844/ . 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).
#<Net::HTTPNotFound:0x2aaaaea89890>
When I call open in the console the response insite open-uri lib is:
#<Net::HTTPOK:0x2aaaab48d570>
System spec:
Fedora 8
Rails 2.0.2
Ruby 1.8.6
I''ll appreciate any help about where the problem could be. 10x in
advance.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---