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

JSON.pretty_generate fails on model objects #576

Closed
saicheems opened this issue May 10, 2017 · 0 comments
Closed

JSON.pretty_generate fails on model objects #576

saicheems opened this issue May 10, 2017 · 0 comments
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@saicheems
Copy link
Contributor

I think this is because of the update to representable.

In the past the call JSON.pretty_generate(response) worked. Now I get the following stack trace:

/usr/local/lib/ruby/gems/2.4.0/gems/google-api-client-0.11.2/lib/google/apis/core/json_representation.rb:142:in `to_json': wrong number of arguments (given 1, expected 0) (ArgumentError)
	from /usr/local/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/common.rb:286:in `generate'
	from /usr/local/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/common.rb:286:in `pretty_generate'
	from dfareporting.accounts.get.frag.rb:22:in `<main>'
@sqrrrl sqrrrl self-assigned this May 11, 2017
@sqrrrl sqrrrl added priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. Status: Acknowledged type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels May 11, 2017
@sqrrrl sqrrrl closed this as completed May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants