in reply to Re^2: WebService::YQL "Couldn't find a decoder method"
in thread WebService::YQL "Couldn't find a decoder method"

What version of JSON::Any do you have ? See this 2013 bug report https://rt.cpan.org/Public/Bug/Display.html?id=89853

The newly released version 3.0/3.01 of JSON::XS is not compatible with JSON::Any 1.30. After upgrading JSON::XS, trying to import JSON::Any results in: Couldn't find a decoder method.

poj
  • Comment on Re^3: WebService::YQL "Couldn't find a decoder method"

Replies are listed 'Best First'.
Re^4: WebService::YQL "Couldn't find a decoder method"
by chuntuk (Novice) on Aug 11, 2018 at 22:28 UTC

    That sounds promising.

    JSON::Any Version 1.39

    JSON::XS Version 3.04

    But what do I do about it? Is it possible to load an older version of JSON::XS somehow? How would I get it to supersede the version that's there now (which doesn't appear to be in any of my local library directories, so I guess it's part of the host's core Perl installation)?

    Maybe I can edit the code within WebService::YQL to not call JSON::Any at all, and to call one of the underlying JSON libraries directly instead?

      That problem was fixed in JSON::Any 1.31 according to the ticket.

      But if for some odd reason that's the problem, you could set env var JSON_ANY_ORDER to PP.

        Setting JSON_ANY_ORDER didn't help me, so in the end I just hacked at the code of YQL.pm to use JSON::MaybeXS instead of JSON::Any as I need to get this working before I go on holiday tomorrow. That fixes the problem. Maybe I'll look for a more elegant solution when I get back. Thanks for your help everybody.