Comments (3)
Which patch level of 1.8.7? I'm using 1.8.7-p299 and this is what I get:
tpitale@localhost@~> irb
ruby-1.8.7-p299 > require 'rubygems'
=> true
ruby-1.8.7-p299 > require 'garb'
=> true
ruby-1.8.7-p299 > Garb::Session.login('user', 'pass')
Garb::AuthenticationRequest::AuthError: Garb::AuthenticationRequest::AuthError
from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/authentication_request.rb:37:in send_request' from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1054:in
request'
from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:2144:in reading_body' from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1053:in
request'
from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1037:in request' from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:543:in
start'
from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1035:in request' from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/authentication_request.rb:36:in
send_request'
from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/authentication_request.rb:49:in auth_token' from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/session.rb:10:in
login'
from (irb):3
from garb.
Hey, this is on patch level 249. According to the Changelog, it looks like the problem may have been fixed in net/http on May 22nd, 2010.
For reference, in debug mode, it's clear that Garb is raising the correct exception, but Ruby is raising another. I'm not exactly sure what's going on here as I'd have thought the first exception would halt execution.
irb(main):002:0> Garb::Session.login("a", "s") Exception `Garb::AuthenticationRequest::AuthError' at /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/authentication_request.rb:37 - Garb::AuthenticationRequest::AuthError Exception `Garb::AuthenticationRequest::AuthError' at /usr/lib/ruby/1.8/net/http.rb:1061 - Garb::AuthenticationRequest::AuthError Exception `NoMethodError' at /usr/lib/ruby/1.8/net/http.rb:1060 - undefined method `closed?' for nil:NilClass Exception `NoMethodError' at /usr/lib/ruby/1.8/irb/workspace.rb:81 - undefined method `closed?' for nil:NilClass NoMethodError: undefined method `closed?' for nil:NilClass from /usr/lib/ruby/1.8/net/http.rb:1060:in `request' from /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/authentication_request.rb:36:in `send_request' from /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/authentication_request.rb:49:in `auth_token' from /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/session.rb:10:in `login' from (irb):2
Thanks! :)
from garb.
If it helps, I just saw this same exception (undefined method closed?
) raised from within ruby-1.8.7-p248, x86_64, using ActiveResource 3.0.3 with an empty application. Outside of garb. Just a straight ActiveResource::Base inherited class call.
from garb.
Related Issues (20)
- Are there plans to implement the new Core Reporting API?
- account.profiles seems to be returning a "invalidRequestUri" HOT 2
- Garb is not working - v2.3 was shutdown HOT 9
- Access via Simple API Access Key HOT 2
- Bug with filters OR HOT 3
- Issue with GA pulling data falling over leap day HOT 1
- Requesting list of segments raises TypeError exception HOT 1
- 404 on the README HOT 1
- undefined method `contains' for :page_path:Symbol HOT 3
- Using multiple filters doesn't work as expected HOT 2
- Syntax for the Segments HOT 1
- Metric collection
- Garb::Request::Authentication::AuthError
- Link to Google Analytics API
- Unable to authenticate with simple login(?) HOT 19
- Analytics API deprecated (?) HOT 1
- Conflict with right_http_connection gem
- Getting "Requested 15 dimensions; only 7 are allowed." often
- Garb fails in Ruby 1.9.3 p392 because of REXML patch HOT 4
- Garb::Management::Account#profiles results in a Garb::DataRequest::ClientError with message "Not Found"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garb.