Displaying 15 results from an estimated 15 matches for "invalidurierror".
2008 Apr 26
1
gem fetching error
...eCommand
Updating installed gems...
Exception `ArgumentError'' at
/usr/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:68 - marshal
data too short
Exception `ArgumentError'' at
/usr/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:68 - marshal
data too short
Exception `URI::InvalidURIError'' at /usr/lib/ruby/1.8/uri/common.rb:436
- bad URI(is not URI?): ://:
Exception `URI::InvalidURIError'' at
/usr/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:60 - bad URI(is
not URI?): ://:
Exception `Gem::OperationNotSupportedError'' at
/usr/lib/ruby/site_ruby/1.8/rubyg...
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"...
2009 Sep 11
2
Installing Rails problem
...ave 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?)
I tried also gem --debug install rails -r
and it wrote:
Exception `NameError'' at
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:161 -
uninitialized constant Gem::Commands::InstallCommand...
2009 Jan 28
2
open_uri failure on good uri.
I am trying to open a URI using doc = Nokogiri::HTML(open(url)). I get
the following error:
URI::InvalidURIError: bad URI(is not URI?):
http://www.mauipropertytax.com/Datalets.asp?mnu=PSearch&submnu=Profile&pin=390350950000&tp=2&cp=1&State=1|1|*&item=1
from /usr/local/ruby/lib/ruby/1.8/uri/common.rb:436:in `split''
from /usr/local/ruby/lib/ruby/1.8/uri/common.rb...
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?
...arted 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 in
mechanize.rb.
I noticed that the new 0.6.3 version of to_absolute_uri starts with:
url = URI.parse(
URI.unescape(Util.html_unescape(url.to_s.strip)).gsub(/ /,
''%20'')
) unless url.is_a? URI...
2007 Nov 14
0
Hpricot & mechanize fail to parse page after redirect1q
...q=football+manager+2008&searchTitle=on
redirects to:
/search/football manager 2008/0/3/0
Now, this all worked dandily up till yesterday. The page was redirected
fine, and mechanize even handled the cookie that was sent back from the
site.
But today, i am getting this strange error:
"URI::InvalidURIError: bad URI(is not URI?): /search/football
manager/2008/0/3/0"
Mechanize gives the following message:
"NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.last"
from C:/Web/ruby/l...
2007 Jan 12
0
why dose to_absolute_uri use URI.escape?
..."http://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8")
-----------------------------
> ruby sample.rb
ruby sample.rb
C:/opt/ruby-1.8/lib/ruby/1.8/uri/common.rb:432:in `split'': bad URI(is
not URI?): http://ja.wikipedia.org/wiki/???????????
(URI::InvalidURIError)
from C:/opt/ruby-1.8/lib/ruby/1.8/uri/common.rb:481:in `parse''
from C:/opt/ruby-1.8/lib/ruby/gems/1.8/gems/mechanize-0.6.4/lib/mechanize.rb:272:in
`to_absolute_uri''
from C:/opt/ruby-1.8/lib/ruby/gems/1.8/gems/mechanize-0.6.4/lib/mechanize.rb:141:in
`get''
from sample....
2006 Aug 22
0
gem install postgres, dead meat - revisited
...or:
ERROR: While executing gem ... (SocketError)
getaddrinfo: no address associated with hostname.
So ... I create this environment variable (info from a prev post):
set http_proxy="xxproxy:8080"
and rerun the gem command.
I now get this error:
ERROR: While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): "xxproxy:8080:"
Any ideas ?
--
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...
2010 Jul 29
0
want to get original url from short(i.e tiny,bit.ly etc) url
Hi all,
I am using Expurrel gem to get the original url from the short url
for all the url shortener services.It works good on the script/console
and irb but it is throughing me error like "URI::InvalidURIError in
KeywordsController#create" in my application after giving some no. of
original url and its for "bit.ly" url shortener. So is there any
solution for this or any other gem or plugin is available to get
original url from the short url? Can any one please help me??
Thanks
Preksha
-...
2007 Jun 21
0
problem with redirect_to() and VirtualHost
...new
the redirect results in:
Proxy Error
The proxy server received an invalid response from an
upstream server.
The proxy server could not handle the request POST
/conf/create.
Reason: Document contains no data
The server says:
[2007-06-21 14:18:42] ERROR URI::InvalidURIError:
the scheme http does not accept registry part:
xyz.cfcl.com (or bad hostname?)
/usr/local/lib/ruby/1.8/uri/generic.rb:729:in `merge''
...
Any ideas on what might be wrong or (better) how to fix it?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/...
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:
2011 Jan 03
8
Heroku, needs constant AppController updates?
....scan(v.venueName)[0]
return [v.venueName, v.city_location, v.longitude, v.latitude]
end
end # of .each
end # of case
return nil
end # of def param Matcher
def validate(url)
begin
uri = URI.parse(url)
if uri.class != URI::HTTP
return false
end
rescue URI::InvalidURIError
return false
end
return true
end
end # of class
----------------- Event Searcher
class EventSearcher < ApplicationController
attr_accessor :all_events
attr_accessor :one_event_id
def perform
logger.debug"in perform"
if all_events == 1 # searches all band...
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