Closed oalders closed 8 years ago
The bug seems to be somehow related to me supplying my own ua
arg when creating the object, so I think I have it solved on my end. I'm still happy to send a PR for the JSON handling, though.
Happy to accept a PR for the JSON handling provided it solves your problem without introducing new issues. Twitter's JSON is quite generic. Wish I understood exactly what happened there.
Would you be open to using JSON::MaybeXS rather than JSON? It appears to be much less buggy and also uses Cpanel::JSON::XS under the hood where possible.
I'm happy to send a pull request.
I came across this because I came across a puzzling error in
Net::Twitter::Core::_parse_result()
where the JSON parsing was throwing an error. This error goes away with Cpanel::JSON::XS. Since there's nocatch
block to warn or die it took me a while to track down.