nstrydom2 / anonfile-api

An unofficial Python Anonfiles.com API
MIT License
62 stars 24 forks source link

Issue 48 #50

Closed hentai-chan closed 3 years ago

hentai-chan commented 3 years ago

This is a work in progress (WIP). It aims to close #48, #49.

hentai-chan commented 3 years ago

pyest local

hentai-chan commented 3 years ago

From the GitHub Actions log:

503 Server Error: Service Temporarily Unavailable for url: https://anonfiles.com/93k5x1ucu0/test_txt
503 Server Error: Service Temporarily Unavailable for url: https://anonfiles.com/b7NaVd0cu3/topsecret_mkv

From https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html:

10.5.4 503 Service Unavailable

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.

      Note: The existence of the 503 status code does not imply that a
      server must use it when becoming overloaded. Some servers may wish
      to simply refuse the connection.

So one reason could be that the request from GitHub actions are denied (sometimes?). @nstrydom2 could you re-run this job a few more times to find out if are always the same methods that fail?