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

Ошибка, когда встречаются пустые поля в карточке фильма #7

Closed
Fan4Metal opened this issue Apr 2, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Fan4Metal
Copy link

Fan4Metal commented Apr 2, 2022

Добрый день!
В энтпоинте /api/v2.2/films/{id} когда когда в карточке фильма встречаются пустые поля, метод send_film_request вылетает.
Например:

  1. 1103803: imdbId = null, ошибка
    apischema.validation.errors.ValidationError: ValidationError(messages=[], children={'imdbId': ValidationError(messages=['expected type string, found null'], children={})})

  2. 41519: nameOriginal = null, ошибка
    apischema.validation.errors.ValidationError: ValidationError(messages=[], children={'nameOriginal': ValidationError(messages= ['expected type string, found null'], children={})})

@Fan4Metal
Copy link
Author

Fan4Metal commented Apr 2, 2022

Еще пример: 1283344, ratingGoodReview = null.

@masterWeber masterWeber self-assigned this Apr 3, 2022
@masterWeber masterWeber added the bug Something isn't working label Apr 3, 2022
@masterWeber
Copy link
Owner

Спасибо, исправил. Если есть замечания или предложения, буду рад принять pull request.

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

No branches or pull requests

2 participants