Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Viki Http Error 404 again #26320
Viki Http Error 404 again #26320
Comments
|
I'm seeing this now too, after successfully downloading from viki.com a couple weeks ago. @dstftw, can you provide the issue number this is a duplicate of so we can follow and/or comment on that issue? |
I don't know why he's always closing this post without telling the duplicate link and problem |
I think the problem from viki now is the APP_SECRET was changed again that's why we can't login |
|
It might be #25374, I guess. At first glance it seemed a little different than this one, but with a closer look it looks like the same exception traceback. |
Yeah maybe they already working on it. Because the issue is already visible for collaborators |
|
I am working on a fix but keep experiencing the same strange bug. If I test my code with requests everything works totally fine. However as soon as I implement that to to viki extractor I keep getting the same 404 Error. Honestly I am not exactly sure why. But could it be some HTTPS related problem? Tho this seems strange since my modified soundcloud extractor works totally fine with HTTPS. Also you have to change app version to '100000a'. Check my gist if you want to try it yourself If you gonna enter this you will get an actual response with json returning a 404. This should be at least downloadable when using _download_json but it isn't so my assumption it isn't using the https url will give you 404 (since there is no http endpoint) obviously. |
|
What version of Python are you using? Since you're seeing a difference in behavior depending on using requests or not, then it could actually be dependent on the version of Python if requests is not being used by default. IIRC, the default SSL support in more recent versions of Python is stricter about certificate verification and may fail to validate in some common but slightly insecure situations. Requests handles the more secure cert verification and will avoid the problems. Or you can go back to Python 3.6 which was before the security changes. Also, the patch in #25374 does fix the problem for me, if I'm using Py3.6. |
|
@RobinD42 I tried with 2.7, 3.5 and 3.7 there is no difference. Right now I will simply implement the login using urllib and see how it goes. I would prefer if there would be native urllib3 or requests support |
Do you think the problem is from APP_SECRET? |
|
I tested my C# code and I'm able to login and get the token |
|
@blackjack4494 could you tell me if this is a correct api? this is where I'm getting the error |
|
@zackmark29 should work with python3+ No clue how your c# code looks like. If you can show me somehow I could help you out. |
|
brief update. I managed to get it working using urllib directly. However only login and downloading of json including subtitles do work. Unfortunately the video streams json won't download as of yet (400 Bad request) I could fix that if I would know the exact problem but error handling in youtube-dl is not deep enough or I haven't figured it out yet. All I know is that the token is invalid when it tries to fetch the video streams json. Okay nevermind I figured out what the problem is whatsoever. It's pretty messy and complicated. If you want to download the stream json the api still wants the old APP with 5 in it. Login and everything else wants the 0 in it... |
yeah the only problem actually is the streams.json and other API's are working. Do you mean the 100005a? is working with the streams.json? Edit: I tried and successfully login with app 100005a. but not yet tried with the streams.json |
|
FINALLY! I got it and it worked! Thanks @blackjack4494 for the information.
Here's the fixed from my c# code so that this can also applied to youtube-dl API_URL = "https://api.viki.io/v4/"; I also included the "x-viki-app-ver" and "x-viki-as-id" to my login request headers |
|
@zackmark29 I am just super confused and upset that for some SUPER ODD reason windows version works fine but as soon as I try on various ubuntu (also raspberry pi) it just won't work and I have no clue at all... |
Sure no problem. Here's the code for httpclient login request ` public static HttpClient ApiClient { get; set; }
and here's the completed streams api: Let me know if you need other code |
|
@zackmark29 thanks :) |
haha it worked without the Id. Thanks! |
Checklist
Verbose log
Description
Yesterday in the morning. I can login and get 720p/1080p resolution.
But suddenly the error is back until now.
Could anyone also experiencing?