consumet / api.consumet.org

A Modern Search Engine API for Anime, Movies/TVShows, Books, Light Novels, Manga, etc.
https://docs.consumet.org
GNU General Public License v3.0
992 stars 434 forks source link

Anilist info route for some animes is giving errors #565

Open VISHWAJ33T opened 4 months ago

VISHWAJ33T commented 4 months ago

Describe the bug

Anilist Info route for some of the animes is giving "This Serverless Function has crashed. " error

Steps to reproduce

meta/anilist/info/16498 meta/anilist/info/113415 meta/anilist/info/16498?provider=zoro meta/anilist/info/113415?provider=zoro

Expected behavior

Should fetch data

Actual behavior

Screenshot 2024-02-08 104105

Additional context

No response

CADIndie commented 4 months ago

@VISHWAJ33T This error is caused by you attempting to request more data than Vercal allows (5 MBs). This issue will occur when loading certain shows, like ONE PIECE, which has a large amount of episodes that can return responses up to 18 MB.

kurays015 commented 4 months ago

@VISHWAJ33T This error is caused by you attempting to request more data than Vercal allows (5 MBs). This issue will occur when loading certain shows, like ONE PIECE, which has a large amount of episodes that can return responses up to 18 MB.

any fix for this?

CADIndie commented 4 months ago

@kurays015 No not really, you can either attempt to give smaller responses (use different provider), avoid shows like ONE PIECE, or you can self host/find another hosting provider. Unless you're willing to pay, I doubt vercal would be willing to remove the limit, sorry.

VISHWAJ33T commented 4 months ago

@CADIndie do you know any other free hosting provider? i hosted it on render and it is giving response but it is very slow

CADIndie commented 4 months ago

@VISHWAJ33T Sadly not, I did look myself for a while but I resorted to self hosting. If you’re up for it and have the knowledge, you can host a free AWS EC2, Google Cloud e2mini, or Google Cloud Serverless Function instance but it’s only temporary as the credits you get for free do expire.

real-zephex commented 4 months ago

I had a similar issue but with some other function. The reason for this is that the maximum payload limit on Vercel is 4.5 MB. If you try to go beyond that then your function will crash. There's no way to bypass this limit. You can either self-host or change the providers.

CADIndie commented 4 months ago

I had a similar issue but with some other function. The reason for this is that the maximum payload limit on Vercel is 4.5 MB. If you try to go beyond that then your function will crash. There's no way to bypass this limit. You can either self-host or change the providers.

Yes that is quite literally what I said.