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]: GraphQL: Unknown type at index 2 while unserializing payload #808

Open
Him188 opened this issue Nov 3, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Him188
Copy link

Him188 commented Nov 3, 2024

https://bangumi.tv/subject/332418 网站可以打开, 但是 graphql 查不了这个条目

Request:

https://api.bgm.tv/v0/graphql

query Q {
  subject(id: 332418){id}
}

Response:

{
  "errors": [
    {
      "message": "Unknown type at index 2 while unserializing payload",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "subject"
      ]
    }
  ],
  "data": {
    "subject": null
  }
}

相邻的 332417 也查不了, 一样的错误, 但是 332416 可以

@Him188 Him188 added the bug Something isn't working label Nov 3, 2024
@trim21 trim21 transferred this issue from bangumi/server Nov 3, 2024
@trim21
Copy link
Contributor

trim21 commented Nov 3, 2024

看样子是用户 tag 解析的问题,目前没有 tag 的条目是个空字符串,解析之前应该先检查 buffer 长度。

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