Kakulukian / youtube-transcript

Fetch transcript from a youtube video
240 stars 51 forks source link

Handle 'Unauthorized' response #22

Closed chr15m closed 4 months ago

chr15m commented 4 months ago

Video with id v-YbL4rLdaY throws this error:

SyntaxError: Unexpected token 'U', "Unauthorized" is not valid JSON

Would be good to be able to access the response to inspect it when thrown.

chr15m commented 4 months ago

This error came from a different library, sorry for the noise.

Medullitus commented 3 months ago

How did you fix that ?? @chr15m

chr15m commented 3 months ago

I replaced the other library with my own code with different error handling.

Medullitus commented 3 months ago

But how are you doing this? I think our developer assumes that we're also developers, so they're not fixing the plugin, and we have to do it ourselves. Can you help?

chr15m commented 3 months ago

No I can't sorry. You should pay somebody else to do this work.

Medullitus commented 3 months ago

OK!