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
1.11k stars 504 forks source link

gogoanime in recent-episodes api return undifine #586

Open ryzen322 opened 6 months ago

ryzen322 commented 6 months ago

Describe the bug

gogoanime in recent-episodes api return undifine

Steps to reproduce

im using rkt query to fetch this data from this url in my localdevice this is the url http://localhost:3000/meta/anilist/recent-episodes

i've tried using axios and fetch it return same error

getAllAnime: builder.query({
      query: (params) => {
        const { pages, perPage: totalPages } = params;

        page = 1,
        perPage = 20

        return {
                url: "recent-episodes",
                params: {
                  page: pages,
                  perPage: totalPages,
                  provider: "gogoanime",
                },
              };
          },
    }),

Expected behavior

it should return all the anime

Actual behavior

{
    "statusCode": 500,
    "error": "Internal Server Error",
    "message": "Cannot read properties of undefined (reading 'map')"
}

Additional context

Error messesage i couldnt found in consumet api