AnimeWorld returns 202 redirect at every request #578

Closed
opened 2025-01-20 10:40:16 -06:00 by PGgamer2 · 2 comments
PGgamer2 commented 2025-01-20 10:40:16 -06:00 (Migrated from github.com)

Source information

ANIMEWORLD.tv 14.41 (Italian)

Source language

Italian

Steps to reproduce

Install the extension and try watching any anime, it will always return that there are no animes/episodes.

Expected behavior

The page should return with a 200 HTTP code and the anime episodes should show up.

Actual behavior

I've used anitester to debug the okHttp requests and this is the response:

--> GET https://www.animeworld.so/filter?&sort=0&keyword=world&page=1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Cache-Control: max-age=600
Accept-Encoding: br,gzip
--> END GET
<-- 202 https://www.animeworld.so/filter?&sort=0&keyword=world&page=1 (166ms)
date: Mon, 20 Jan 2025 16:16:42 GMT
content-type: text/html
expires: Thu, 01 Jan 1970 00:00:01 GMT
cache-control: no-cache
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=u5zpGqfCwScjF%2B7R%2B0hsQuguF8QBxUzt18bJZUYFTh8888%2BbwTY71a2jgm4fJol8lOb7o2F784Qe7YHcgCUYGXvNJLh%2BluLwd30lRUR4P5SBDGyYO70PjDSbSRrHP%2FMJWFGw2w%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 90505edcb9482447-AMS
alt-svc: h3=":443"; ma=86400
server-timing: cfL4;desc="?proto=TCP&rtt=78121&min_rtt=67163&rtt_var=23636&sent=11&recv=9&lost=0&retrans=0&sent_bytes=4470&recv_bytes=1030&delivery_rate=50585&cwnd=256&unsent_bytes=0&cid=be1c60cb757e8dac&ts=388&x=0"
<-- END HTTP

The page returns a 202 redirect code, but never redirects.

Which app are you using?

Dantotsu

App version

3.2.1

Android version

Android 14

Other details

After a bit of testing, when the redirection page shows up this is its content:

<html><head></head><body><script>document.cookie="SecurityAW-gl=9725f584aac87b992af83ab37bb898b0 ;  path=/";location.href="http://www.animeworld.so/?d=1";</script></body></html>

I've tried setting the cookie by applying these changes 2480a5576f but the result does not change.

Weirdly enough, if I do the request manually using fetch on Node.JS, it works just fine:
Image

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • I have updated all installed extensions.
  • I have tried the troubleshooting guide.
  • I will fill out all of the requested information in this form.
### Source information ANIMEWORLD.tv 14.41 (Italian) ### Source language Italian ### Steps to reproduce Install the extension and try watching any anime, it will always return that there are no animes/episodes. ### Expected behavior The page should return with a 200 HTTP code and the anime episodes should show up. ### Actual behavior I've used [anitester](https://github.com/Claudemirovsky/aniyomi-extensions-tester) to debug the okHttp requests and this is the response: ``` --> GET https://www.animeworld.so/filter?&sort=0&keyword=world&page=1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0 Cache-Control: max-age=600 Accept-Encoding: br,gzip --> END GET <-- 202 https://www.animeworld.so/filter?&sort=0&keyword=world&page=1 (166ms) date: Mon, 20 Jan 2025 16:16:42 GMT content-type: text/html expires: Thu, 01 Jan 1970 00:00:01 GMT cache-control: no-cache cf-cache-status: DYNAMIC report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=u5zpGqfCwScjF%2B7R%2B0hsQuguF8QBxUzt18bJZUYFTh8888%2BbwTY71a2jgm4fJol8lOb7o2F784Qe7YHcgCUYGXvNJLh%2BluLwd30lRUR4P5SBDGyYO70PjDSbSRrHP%2FMJWFGw2w%3D%3D"}],"group":"cf-nel","max_age":604800} nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} server: cloudflare cf-ray: 90505edcb9482447-AMS alt-svc: h3=":443"; ma=86400 server-timing: cfL4;desc="?proto=TCP&rtt=78121&min_rtt=67163&rtt_var=23636&sent=11&recv=9&lost=0&retrans=0&sent_bytes=4470&recv_bytes=1030&delivery_rate=50585&cwnd=256&unsent_bytes=0&cid=be1c60cb757e8dac&ts=388&x=0" <-- END HTTP ``` The page returns a 202 redirect code, but never redirects. ### Which app are you using? Dantotsu ### App version 3.2.1 ### Android version Android 14 ### Other details After a bit of testing, when the redirection page shows up this is its content: ```HTML <html><head></head><body><script>document.cookie="SecurityAW-gl=9725f584aac87b992af83ab37bb898b0 ; path=/";location.href="http://www.animeworld.so/?d=1";</script></body></html> ``` I've tried setting the cookie by applying these changes https://github.com/PGgamer2/extensions-source/commit/2480a5576f2870c732504f548d88bee9a513dfdf but the result does not change. Weirdly enough, if I do the request manually using fetch on Node.JS, it works just fine: ![Image](https://github.com/user-attachments/assets/fd1f4354-3b0e-4777-ab1b-559315936c79) ### Acknowledgements - [x] I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. - [x] I have written a short but informative title. - [x] I have updated all installed extensions. - [x] I have tried the [troubleshooting guide](https://aniyomi.org/docs/guides/troubleshooting/). - [x] I will fill out all of the requested information in this form.
PGgamer2 commented 2025-01-22 09:33:14 -06:00 (Migrated from github.com)

Even after the pull request the extension still returns a 202 return code.

Even after the pull request the extension still returns a 202 return code.
PGgamer2 commented 2025-01-23 07:16:43 -06:00 (Migrated from github.com)

I've fixed with PR #582

I've fixed with PR #582
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AlmightyHak/extensions-source#578
No description provided.