question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix valid youtube error

See original GitHub issue

Describe When embedding a youtube video on a page we may get MISSING_EMBED_PERMISSION error, which is not in the enum type here. This results to the event being invalidated as well (schema). As discussed with @greg-el , there seems to be a mismatch with the error codes mapping here.

To Reproduce Probably by embedding a youtube video without embed permissions.

Expected behavior The event with the youtube error being valid.

Additional context The corresponding youtube schema may need to be patched as well.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
igneel64commented, Oct 4, 2022

Yeap that is Option 1 in a nutshell! (I might have messed up what changes are needed in each option)

All in all, we just change the mapping to fit the current schema.

0reactions
adatzercommented, Oct 4, 2022

Got it now! 💡 Thank you!

Ok, one more question: Isn’t the choice of strings ours? I mean, aren’t the error codes(numbers) the only thing we get from the youtube API? Or do we also get the strings (e.g. INVALID_URL) as message?

What if we just change Map 1,

from:

2: 'INVALID_URL',
5: 'HTML5_ERROR',
100: 'VIDEO_NOT_FOUND',
101: 'MISSING_EMBED_PERMISSION',
150: 'MISSING_EMBED_PERMISSION',

to:

2: 'INVALID_PARAMETER',
5: 'HTML5_PLAYER_ERROR',
100: 'NOT_FOUND',
101: 'EMBED_DISALLOWED',
150: 'EMBED_DISALLOWED',

and keep only that (plus no schema change)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot YouTube error messages - Android
There are many root causes of error messages. Many are out of YouTube's control, such as a bad internet connection or insufficient memory...
Read more >
How to Fix "Invalid Response Received" YouTube Error?
If while watching or opening any video on # YouTube or searching for any video or while commenting on a video seeing the...
Read more >
How To Fix YouTube Error "An Error Occurred. Please Try ...
This tutorial will hopefully resolve some errors you guys may be experiencing while trying to view YouTube videos. If you are on YouTube, ......
Read more >
How to Fix Invalid File Format Youtube
Are you getting an " Invalid file format" error when uploading to YouTube ? This video shows you how to fix it if...
Read more >
How to fix Youtube Error 'Your video title is invalid' when Save ...
When i try to edit the info & settings, that is video description, 'your video title is invalid ' message is showing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found