Displaying 20 results from an estimated 100 matches similar to: "open_uri failure on good uri."
2008 Jun 24
0
open_uri on invalid URLs
Hi
I am using open(public_url) in one of the modules and it works fine as
long as public_url is a valid URL. But when i give an invalid URL, i do
not have control on error raised- My application fails and log shows :
Errno::ENOENT) \\\"No such file or directory
How can i catch these exceptions?
Regards,
Sandeep G
--
Posted via http://www.ruby-forum.com/.
2008 Apr 26
1
gem fetching error
I am trying to install some application using gem, but I keep on getting
the error. I tried with ''gem clean'' and ''gem update''. The latter gives
the following error (the same error is replicable when I try any ruby
applications):
# gem update --debug
Exception `Errno::ENOENT'' at
/usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51 - No such file or
2007 Mar 20
6
bad URI problem when submitting a form
Hi all,
I''ve a problem when submitting a form : the URL seems to be invalid. I really
don''t see the way I should try to solve that problem. I searched on the web,
but didn''t found any kind of that problem.
Here is the code :
require ''mechanize''
agent = WWW::Mechanize.new
page =
2006 Nov 22
1
to_absolute_uri typo in 0.6.3?
I just started using Mechanize, and started using Ruby about thirty
seconds before that, but one of the sites I''m scraping does a redirect
on form submission to a badly-formed relative URL:
index.cfm?action=bing&bang=boom=1|a=|b=|c= (etc.)
Interestingly, Mechanize 0.6.2 handled this OK, but in 0.6.3 this causes
a URI::InvalidURIError exception from URI.parse() in to_absolute_uri
2007 Apr 05
2
URL check URL validity
Hi everyone,
I have a web app that at some point asks for a URL ... and i need to
check that url''s validity ... is there a way to do that in RoR...
- in C# i would to something along the lines of
HttpWebRequest hReq =
(HttpWebRequest)WebRequest.Create(url................);
HttpWebResponse hRes = (HttpWebResponse)hReq.GetResponse();
rCode = hRes.get_StatusCode()...etc
Any input is
2006 Aug 18
3
connect to postgres db
I''ve followed the tutorial and just don''t get it.
How do I connect my ruby/rails sample app to my postgres database.
I did follow step 1-4 of the tutorial, I go to step 5:
(http://wiki.rubyonrails.org/rails/pages/TutorialStepFive)
and try the "rake" commmand and get this:
rake aborted!
no such file to load -- postgres
so I ran with -trace and get this:
2006 Sep 26
3
PXE menu file problem
Hi everybody
Attached you will find a file pxe.mnu (encoded with mime). It is PXE menu file created by 3COM MBA IMGEdit.exe tool. It is very strange since:
1) When I point DHCP bootfile to this file it loads with no problem and the menu is displayed.
2) When I point DHCP bootfile to pxelinux.0 and in pxelinux.cfg I put the command "KERNEL pxe.mnu" then system hangs. I wonder why this
2002 Oct 31
2
Error joining Win2K domain: ads_connect: DSA is unavailable
I'm running 3.0alpha (both current CVS pull and alpha20 from dist) and trying to have my samba server join our already in place Win2K ADS domain. I am able to 'kinit user@DOMAIN' and auth successfully, but upon attempting 'net ads join', I get the following:
# net ads join -Uadministrator
administrator password:
[2002/10/31 05:11:19, 1] libsmb/clikrb5.c:krb5_mk_req2(63)
2006 Nov 27
8
Chaining from PXELinux to some other boot loader
Hi
I am using PXELinux to boot BartPE and some other application and it works fine. There are some other Boot application which I am using 3COM MBAUTIL PXE.mnu and floppy images. I have problem chaining from pxelinux.0 to 3com pxe.0 (pxe.mnu).
Consider:
BIOS->(DHCP-TFTP)->pxelinux.0 works fine.
BIOS->(DHCP-TFTP)->3COM pxe.mnu works fine, the menu appears and I can choose a floppy
2009 Jun 22
2
URI::InvalidURIError with open-uri and Google Maps
Hello,
I''m getting an URI::InvalidURIError in my controller when I use german
characters in the uri. Google accepts them but open-uri not. How to
encode them?
That''s my controller simplified:
def index
require ''open-uri''
address = "Bürgerstraße+68+01127+Dresden"
api_key = "my api key"
json =
2006 Sep 22
1
Booting 3COM MBA mnu.pxe
Hi
Is there any method to chain to 3com menu file (mnu.pxe)? It hangs now.
Behrad
2007 Oct 19
3
Stubbing a Kernel method?
Is it possible to stub a Kernel method? I''m specifically interested in
the ''open'' method to test some code using open-uri. I''ve tried:
Kernel.should_receive(:open).with(''filename'').and_return(''data'')
However, this doesn''t seem to work. Any suggestions would be appreciated.
--Paul
2006 Jul 06
2
questions on data management
Dear friends,
suppose i have two datasets: A and B
A:
id<-1:6
x<-c(1,2,3,4,5,6)
y<-c(2,4,6,8,3,2)
xy<-data.frame(id,x,y)
B
m<-c(1,1,3,3,5,5)
n<-c(2,2,6,6,3,3)
mn<-data.frame(m,n)
Now, i want to perfomr two tasks:
1. get a subset of B,no duplicate values,:
C:
m n
1 2
3 6
5 3
2.Extract the values in A on the conditions that x=m and y=n
the results should be:
id x y
1 1 2
3
2008 Mar 16
8
include a page in another
Hi,
for my isbn plugin, I''m wishing to incldue generated isbn pages in
caller pages (the ones with <isbn value=""> tags).
But I want my isbn page to be processed before for its tags to be
transformed (like the relocatable or other ones). Besides, i do not
want its header to be included.
Is there an easy solution for that, or should I do the work myself ?
--
Nicolas
2009 Sep 11
2
Installing Rails problem
I have installed Ruby and Apache, but when tried to install Rails (sudo
gem install rails --include-dependencies) I have got an error:
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: While executing gem ... (URI::InvalidURIError)
the scheme http does not accept registry part: :8080 (or bad
hostname?)
2006 Apr 14
2
Markaby trunk broken?
Hello!
Does anyone know how I can check out the Markaby trunk? I''m getting this
error:
<code>
ruby script/plugin install
http://code.whytheluckystiff.net/svn/markaby/trunk
+ ./trunk/svnindex.xsl
/usr/local/lib/ruby/1.8/open-uri.rb:290:in `open_http'': 404 Not Found
(OpenURI::HTTPError)
from /usr/local/lib/ruby/1.8/open-uri.rb:629:in `buffer_open''
1999 Sep 13
0
Finding Samba services on the network from Win 9x clients
I've installed Samba version 2.0.5a on Linux kernel 2.0.36 (both smbd and
nmbd are running). I've set the netbios name to "lion" and now I want
Windows 9x clients to connect to it like this (from START->RUN):
net use w: \\lion\dougl ?
I get this:
"Error 53: The computer name specified in the network path cannot be located.
Make sure you are specifying the computer
2011 Jan 03
8
Heroku, needs constant AppController updates?
Dear All,
Fairly new to rails and Heroku, so could be doing something wacky - do
let me know if you think my code practice is off, even if unrelated to
this error, I''d like to learn!
I''m using Rails 3.0.0, ruby 1.8.7, and ''sqlite3-ruby'', ''1.2.5'', :require
=> ''sqlite3''.
I''ve got an application that goes off and
2012 Jul 06
9
[Bug 2024] New: Allow to ssh client say to ssh-agent which key should be used.
https://bugzilla.mindrot.org/show_bug.cgi?id=2024
Priority: P5
Bug ID: 2024
Assignee: unassigned-bugs at mindrot.org
Summary: Allow to ssh client say to ssh-agent which key should
be used.
Severity: enhancement
Classification: Unclassified
OS: Linux
Reporter: pub at mnu.pp.ru
Hardware:
2006 Mar 24
8
[OT] Does Net::HTTP support secure connections ?
Hi !
I''m trying to connect to an https URL, but it seems it doesn''t work.
Has anyone successfully connected from Ruby to an HTTPS server ?
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/