Open ttdyce opened 2 years ago
after some research, should be fixable. Briefly tested ok with @zhkrb's repo, will focus on his solution. 😵💫
At the time, the ddos protection is gone and the api is back to work. Though, I think the ddos protection page may pop up again from time to time.
API resumed normal now
The idea that NHentai puts DDoS protection like this on their API just feels bizarre to me. I mean I kinda get why but it just feels silly
I also tried a wget command and it gave me a 503 Service Temporarily Unavailable error. Same as with your NHAPI repo:
~$ wget https://nhentai.net/api/galleries/search -O /tmp/index.html
--2022-07-01 13:39:04-- https://nhentai.net/api/galleries/search
Resolving nhentai.net (nhentai.net)... 172.67.159.231, 104.21.66.123
Connecting to nhentai.net (nhentai.net)|172.67.159.231|:443... connected.
HTTP request sent, awaiting response... 503 Service Temporarily Unavailable
2022-07-01 13:39:04 ERROR 503: Service Temporarily Unavailable.
Some update for those who are interested: My local dev is almost done for this issue (by adding a hidden WebView), I will soon release the new version after some testing.
Should be fixed in 3.3.0, see: https://install.appcenter.ms/users/ttdyce/apps/nhviewer-1/distribution_groups/public
Current not working, checked from app log:
Unexpected response code 403
checked the actual behavior in chrome:
Required further check for the issue
Currently not working, server API returned code 404, with content = {"error": "does not exist"}
tested url = https://nhentai.net/api/galleries/search?query=chinese
Currently not working, server API returned code 404, with content =
{"error": "does not exist"}
tested url =https://nhentai.net/api/galleries/search?query=chinese
Checked again that API is back to working now.
Currently not working again, 404 with {"error": "does not exist"}
tested url = https://nhentai.net/api/galleries/search?query=chinese
but https://nhentai.net/api/galleries/search?query=english works
is it checking the query keywords? need to come up with some alternative keywords for it.
Seems nhentai has changed their site (added DDoS protection?) and the API client is not working now.
Would need to update this application to fix this issue.
Tested with the api endpoint:
curl https://nhentai.net/api/galleries/search\?query\=language:chinese
Expected to receive JSON response, currently some html for redirect after 5s