Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

getVideo() sometimes returns null #64

@vincentwinkel

Description

@vincentwinkel

Minimal Typescript code:

// debug.ts

import * as youtube from 'youtube-sr';

youtube.default.getVideo('https://www.youtube.com/watch?v=wMzIHuWh_I0').then(console.log);

Run by:

tsx debug.ts

It works perfectly on local, but on a Europe-hosted VPS, it logs null. I don't see any way to debug that but I dont think it's an issue about license.

Do you have an idea?

Note: search() seems working perfectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions