Skip to content


Subversion checkout URL

You can clone with
Download ZIP


You have a nil object when you didn’t expect it! #3

Rockyyost opened this Issue · 5 comments

3 participants


Hi Chris, thanks for helping!

I was trying to follow your instructions, but when I run:
ga ={ :email => ‘MY EMAIL’,
:password => ‘MY PASSWORD’,
:timeout => 500 })

I keep getting:

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.split
Any idea what could be wrong?

Other then the above message, I don't get any other feed.


Read: Google Analytics Data Export API with Ruby + Gattica | SEER Interactive


With a little more digging, it looks like it crashes here:
/Users/ryost/.rvm/gems/ruby-1.9.3-p0/bundler/gems/gattica-15a5b28ff8d4/lib/gattica/auth.rb:46:in `parse_tokens'


This is what response looks like: #
This is what data looks like: nil


Hrm. I haven't tried it under 1.9.3 yet. Have you tried using ruby 1.9.2?


It works under 1.9.2 - issue is 1.9.3 Specific


Thanks to both of you for finding and fixing it. I incorporated it in the latest commit

@chrisle chrisle closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.