json: cannot unmarshal bool into Go value of type string

948 views
Skip to first unread message

JohnGB

unread,
Apr 2, 2014, 4:30:13 AM4/2/14
to golan...@googlegroups.com

I have a Go app running on AppEngine which was deployed over 3 months ago.  About 12 hours ago (without anything on the code changing) I started receiving a flood of the following errors:  

JSON failed to decode Google Play token claims (json: cannot unmarshal bool into Go value of type string).

As nothing on the app has changed, I'm fairly stumped as to what could suddenly be causing the errors.  I'd really appreciate any push in the right direction here. 

Peter Bourgon

unread,
Apr 2, 2014, 5:08:43 AM4/2/14
to JohnGB, golang-nuts
Could the Google Play token API have changed its response structure?
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

John Beckett

unread,
Apr 2, 2014, 5:35:10 AM4/2/14
to Peter Bourgon, golang-nuts
That seems to be the case.  We were expecting a string value (which it used to be), and it seems Google changed it to a bool value.

I'm somewhat surprised by this though, as changing the response structure without letting people know isn't something I would have expected from Google.
Reply all
Reply to author
Forward
0 new messages