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

503 during Yggtorrent login #8082

Closed
SabatierBoris opened this issue May 9, 2020 · 3 comments
Closed

503 during Yggtorrent login #8082

SabatierBoris opened this issue May 9, 2020 · 3 comments
Labels
triage Untriaged issue

Comments

@SabatierBoris
Copy link

Describe the bug
Can't login to Yggtorrent provider.

To Reproduce
Steps to reproduce the behavior:

  1. Configure the Yggtorrent provider
  2. Do a manual search or wait for the automatic search
  3. Check the logs

Medusa (please complete the following information):

  • OS: docker linuxserver.io
  • Branch: master
  • Commit: ??
  • Python version: 3.8.2
  • Database version: ??

Debug logs (at least 50 lines):
General > Advanced Settings > Enable debug

2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] Could not find any candidates in cache, searching provider.
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www.yggtorrent.to/user/ajax_usermenu [Status: 301]
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www2.yggtorrent.se/user/ajax_usermenu [Status: 503]
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] The response returned a non-200 response while requesting url https://www.yggtorrent.to/user/ajax_usermenu Error: HTTPError('503 Server Error: Service Temporarily Unavailable for url: https://www2.yggtorrent.se/user/ajax_usermenu')
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] Retrieving redirect URL for https://www.yggtorrent.to/user/login
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www.yggtorrent.to/user/login [Status: 301]
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www2.yggtorrent.se/user/login [Status: 503]
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] The response returned a non-200 response while requesting url https://www.yggtorrent.to/user/login Error: HTTPError('503 Server Error: Service Temporarily Unavailable for url: https://www2.yggtorrent.se/user/login')
2020-05-09 10:08:40 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] Using alternative method to retrieve redirect URL
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www.yggtorrent.to/user/login [Status: 301]
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] POST URL: https://www2.yggtorrent.se/user/login [Status: 503]
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] With post data: id=**********&pass=**********
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] The response returned a non-200 response while requesting url https://www2.yggtorrent.se/user/login Error: HTTPError('503 Server Error: Service Temporarily Unavailable for url: https://www2.yggtorrent.se/user/login')
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www.yggtorrent.to/user/ajax_usermenu [Status: 301]
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] GET URL: https://www2.yggtorrent.se/user/ajax_usermenu [Status: 503]
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] User-Agent: Medusa/0.3.16 (Linux; 4.19.0-8-amd64; 2445b7fe-91cc-11ea-8daf-0242ac110004)
2020-05-09 10:08:41 DEBUG    FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] The response returned a non-200 response while requesting url https://www.yggtorrent.to/user/ajax_usermenu Error: HTTPError('503 Server Error: Service Temporarily Unavailable for url: https://www2.yggtorrent.se/user/ajax_usermenu')
2020-05-09 10:08:41 WARNING  FORCEDSEARCHQUEUE-MANUAL-377349 :: [Yggtorrent] :: [] Unable to connect or login to provider

Additional context
I think it's due to Cloudflare (in front of Yggtorrent). It's return a HTTP 503 so medusa stop doing anything.
When I do the same thing on my browser, I go the 503 but, few second later I got a 200.
I a saw, the 503 from Cloudflare have some data (HTML + JS). I think is this how retry flew seconds later.
I'm quite new in your code base, but I saw some code about Cloudflare. maybe cloudflare change the way they do, or yggtorrent isn't configured to be protected by cloudflare in medusa.

@triage-new-issues triage-new-issues bot added the triage Untriaged issue label May 9, 2020
@p0psicles
Copy link
Contributor

You are correct. We have a Lib that handles this. But where still waiting for the fix in the lib

@SabatierBoris
Copy link
Author

Ok. Do you know if someone is working on it ?

@medariox
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

3 participants