lazy_google_analytics icon indicating copy to clipboard operation
lazy_google_analytics copied to clipboard

NoMethodError: undefined method `columns'

Open connor-t opened this issue 11 years ago • 7 comments

calling columns or rows results in the following error @results.columns NoMethodError: undefined method `columns' for #Google::APIClient::Result:0x007f8984cdc638

and also the same error for formatted_rows, formatted_columns

connor-t avatar Aug 26 '13 14:08 connor-t

can you paste your implementation? is hard to tell which is the problem without code

michelson avatar Aug 26 '13 15:08 michelson

the code is exactly the same as the docs

calling @results.data.column_headers works properly as does @results.data.rows

connor-t avatar Aug 26 '13 15:08 connor-t

Thanks, I will review it asap

Atte. Miguel Michelson Martinez www.artenlinea.com

On Mon, Aug 26, 2013 at 11:18 AM, TheBatman [email protected]:

the code is exactly the same as the docs

calling @results.data.column_headers works properly as does @results.data.rows

— Reply to this email directly or view it on GitHubhttps://github.com/michelson/lazy_google_analytics/issues/2#issuecomment-23270083 .

michelson avatar Aug 26 '13 15:08 michelson

I'm having the same problem here. I'm not sure whether there is an authentication error or not. If there is one, will there be a notification?

tohyongcheng avatar Aug 29 '13 05:08 tohyongcheng

the authentication error looks like;

Signet::AuthorizationError: Authorization failed. Server message: { "error" : "invalid_grant" }

connor-t avatar Aug 29 '13 08:08 connor-t

Yes, it Looks like an authentication issue

El jueves, 29 de agosto de 2013, Connor escribió:

the authentication error looks like;

Signet::AuthorizationError: Authorization failed. Server message: { "error" : "invalid_grant" }

— Reply to this email directly or view it on GitHubhttps://github.com/michelson/lazy_google_analytics/issues/2#issuecomment-23475520 .

Atte. Miguel Michelson Martinez www.artenlinea.com

michelson avatar Aug 29 '13 13:08 michelson

For me, there was no authentication error. I could access the data, but there were no rows, columns, formatted_columns nor formatted_rows in the methods. I still can access the data by calling:

@data = @results.data.rows

tohyongcheng avatar Aug 30 '13 00:08 tohyongcheng