Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garb::Profile.all errors if you only have one Google Analytics profile #104

Open
rvwong opened this issue Oct 7, 2011 · 2 comments
Open

Comments

@rvwong
Copy link

rvwong commented Oct 7, 2011

If you access an account that only has one profile, you get the following error if you try to execute

Garb::Profile.all

NoMethodError: You have a nil object when you didn't expect it!

I believe this is either a bug in Garb or a bug in the Google Analytics. It seems to me that when you only have one profile, google is returning the profile itself rather than the profile inside an array.

@tpitale
Copy link
Contributor

tpitale commented Oct 7, 2011

Thanks, I'll take a look.

@reillyse
Copy link

reillyse commented Oct 7, 2011

I can confirm that it gives a nil with one profile, Garb::Management::Profile.all. works fine though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants