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 view errors #1583

Merged
merged 2 commits into from Aug 25, 2015
Merged

Json view errors #1583

merged 2 commits into from Aug 25, 2015

Conversation

rwstauner
Copy link
Contributor

Ever since we added the favorites_as_json thing i've been seeing a 500 Error in my console about it.
I noticed this week that it is actually killing the Account menu for me.
I am logged in, but b/c the json call fails, the javascript shows me the "Sign in" menu, which is very confusing.

I noticed an error in the log:

[error] Caught exception in MetaCPAN::Web::View::JSON->process "encountered object 'true', but neither allow_blessed, convert_blessed nor all
ow_tags settings are enabled (or TO_JSON/FREEZE method missing) at (eval 891) line 151."

and tracked it down to the fact that my user profile has booleans in the "extra" data.

It currently errors on booleans.
The error appears to be coming from JSON::Any + JSON
not decoding JSON::XS::Boolean (because they aren't JSON::PP::Boolean).
@ranguard
Copy link
Member

Nice spot!

oalders added a commit that referenced this pull request Aug 25, 2015
@oalders oalders merged commit 4102fbf into master Aug 25, 2015
@oalders oalders deleted the json-view-errors branch August 25, 2015 03:45
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

Successfully merging this pull request may close these issues.

None yet

3 participants