Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected API Response: Internal Server Error #523

Closed
ICEPrey opened this issue Apr 26, 2024 · 1 comment · Fixed by #524
Closed

Unexpected API Response: Internal Server Error #523

ICEPrey opened this issue Apr 26, 2024 · 1 comment · Fixed by #524
Labels
bug Something isn't working

Comments

@ICEPrey
Copy link
Contributor

ICEPrey commented Apr 26, 2024

Describe the bug

Unexpected tmdb/info response

Steps to reproduce

Make a request to the API endpoint ${url}/meta/tmdb/info/85937?type=tv

Expected behavior

The API should return detailed information about the TV show Demon Slayer including its title, description, genres, episodes, ratings, and other relevant data.

Actual behavior

The API returns an error response with the following details:
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Cannot read properties of undefined (reading 'startsWith')"
}

Additional context

This error is only happening with Demon Slayer.

@ICEPrey ICEPrey added the bug Something isn't working label Apr 26, 2024
@ICEPrey
Copy link
Contributor Author

ICEPrey commented Apr 27, 2024

The totalSeasons filtering step is where the issue occurs. The log shows that after applying the totalSeasons filter the findMedia.results becomes an empty array.
image
image

ICEPrey added a commit to ICEPrey/consumet.ts that referenced this issue Apr 27, 2024
ICEPrey added a commit to ICEPrey/consumet.ts that referenced this issue May 17, 2024
@riimuru riimuru linked a pull request May 20, 2024 that will close this issue
riimuru pushed a commit that referenced this issue May 20, 2024
* fix(tmdb): issue #523 allows a broader range of totalSeasons values

* refactor(test): fix test file

* chore(package): remove unused test scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant