Skip to content

15.0.1-deno getChannel fails #1023

@Redcrafter

Description

@Redcrafter

Steps to reproduce

const yt = await Innertube.create({
    cookie: ...
});
await yt.getChannel("UCktjMRvuBnE_XLVWIMa2H1w");

Failure Logs

stack: "TypeError: Cannot read properties of undefined (reading 'is')
    at Innertube.getChannel (https://deno.land/x/youtubei@v15.0.1-deno/deno/src/Innertube.ts:396:51)

Expected behavior

getChannel returns without throwing an error.

Current behavior

getChannel fails despite the actual web request succeeding.

Version

Default

Anything else?

response.on_response_received_actions is an empty array resulting in .is(NavigateAction) being called on undefined.

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions