p5-www-youtube-download icon indicating copy to clipboard operation
p5-www-youtube-download copied to clipboard

JSON text must be an object or array

Open zalami opened this issue 7 years ago • 0 comments

use Async; use WWW::YouTube::Download; my $proc = Async->new(sub { my $client = WWW::YouTube::Download->new; $client->download($video_id, { filename => 'sample.mp4', }); } ) or die; throws following error:

JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at ../WWW/YouTube/Download.pm line 231.

Note: same error when using core thread: use Thread 'async';

zalami avatar Apr 21 '17 09:04 zalami