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

[Bug]video/__init__.pyのOwnerクラスの_typeの問題 #58

Closed
1 of 3 tasks
ysmreg opened this issue Sep 23, 2024 · 1 comment
Closed
1 of 3 tasks

[Bug]video/__init__.pyのOwnerクラスの_typeの問題 #58

ysmreg opened this issue Sep 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ysmreg
Copy link

ysmreg commented Sep 23, 2024

概要

video/init.pyのOwnerクラスの_typeの問題

現象・ログ

pydantic_core._pydantic_core.ValidationError: 10 validation errors for NvAPIResponse[VideoSearchData] data.items.2.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.14.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.15.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.16.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.17.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.18.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.19.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.20.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.21.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error data.items.22.owner.type Input should be 'user' or 'unknown' [type=literal_error, input_value='channel', input_type=str] For further information visit https://errors.pydantic.dev/2.8/v/literal_error

再現手順

検索を行うとエラーになります

期待動作

niconico.pyのバージョン

2.0.9

OSの種類/ディストリ/バージョン

  • Windows
  • macOS
  • Linux

Windows 11 Pro 64bit

その他

@ysmreg ysmreg added the bug Something isn't working label Sep 23, 2024
@Negima1072 Negima1072 self-assigned this Sep 24, 2024
Negima1072 added a commit that referenced this issue Sep 24, 2024
@Negima1072
Copy link
Collaborator

v2.1.0で解決しました。

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