(wip) Error: continueReq only allowed for paged requests
patrickkfkan opened this issue · 2 comments
Hello,
Just did a bit of testing with the wip branch (sorry, couldn't wait).. I got an error with continueReq()
:
Error: continueReq only allowed for paged requests
I just fed the continuation
object returned by ytpl to continueReq()
, like the example in the Readme.
Looking at the line that throws this error:
if (!isNaN(args[3].limit)) throw new Error('continueReq only allowed for paged requests');
But then, args[3].limit
(i.e. opts.limit
) is always Infinity when continuation
is returned. That means !isNaN(args[3].limit)
will always be true (hence the error)?
I haven't tested ytsr yet, but glancing at the code I suppose it's going to be the same ;) ?
Thanks,
Patrick
nice spotting
i'm happy with every error found before i merge to master 👍🏻
fix on it's way
fixed in 55697d5
and TimeForANinja/node-ytsr@1033011