Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube 403 error #94

Closed
JohnBlackburne opened this issue Nov 16, 2014 · 7 comments
Closed

YouTube 403 error #94

JohnBlackburne opened this issue Nov 16, 2014 · 7 comments

Comments

@JohnBlackburne
Copy link

@JohnBlackburne JohnBlackburne commented Nov 16, 2014

This is an odd one. One and one only youTube video isn't working for me - I get a 403 error on the video asset - until I load Flash. It's this one

https://www.youtube.com/watch?v=OPXRQwkpWoI

It's notable for having a song title longer than almost any other. See

https://en.wikipedia.org/wiki/Suzukake_Nanchara

That should not make much difference though, as it uses the YouTube heading which is normally much longer than any song title. As it's only one video and I can watch (and have watched) it using Flash this has to be very low priority.

@hoyois
Copy link
Owner

@hoyois hoyois commented Nov 22, 2014

Thanks for the report. This must be a stupid bug in YouTube's URL query parser. It doesn't like something in the title string which is appended at the end of the URL; not sure what exactly that is yet.

@hoyois
Copy link
Owner

@hoyois hoyois commented Dec 3, 2014

Did YouTube just fix this?

@JohnBlackburne
Copy link
Author

@JohnBlackburne JohnBlackburne commented Dec 3, 2014

Not for me - still doesn't load and I get a 'The requested URL was not found on this server' if I try to download via the menu. And I'm bang up to date according to the App Store ah a Safari update. Be right back. No, still not working with Safari 8.0.1.

@hoyois
Copy link
Owner

@hoyois hoyois commented Dec 4, 2014

In-browser playback works consistently for me now. Download still doesn't work but the error in the Downloads popup is "Cannot open file", which I've never seen before.

Before I had determined that the issue has to do with the length of the 'title' query parameter, although how YouTube actually computes the length is not clear. Unfortunately this is a nightmare to investigate because when you get it to work once it then always works for some time, perhaps because of some caching on YouTube's server.

@bo3rnd
Copy link

@bo3rnd bo3rnd commented Dec 4, 2014

I noticed that there is not always a 403 error with the video which is linked in the first post.
It seems it depends on the server which is serving the video, some of youtube's servers are giving an error and sometimes the download works, but the title parameter is ignored and the file is just named videoplayback.mp4

@JohnBlackburne
Copy link
Author

@JohnBlackburne JohnBlackburne commented Dec 4, 2014

Sorry yes, the 403 error in the log is something to do with Google+ being blocked which also occurs on other pages. This is a 'file not found' problem which doesn't put an error in the log but fails whichever way you try to access it.

@hoyois
Copy link
Owner

@hoyois hoyois commented Dec 7, 2014

Luckily it stopped working again today and I was able to investigate. The "file not found" error happens precisely when the 'title' parameter has unescaped length greater than 228 (each Japanese character counts as 3). I will fix this in the next update.

The "Cannot open file" error I mentioned earlier had nothing to do with YouTube and is literally because HFS+ cannot create a file with filename longer than 255...

@hoyois hoyois closed this Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.