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

Get JsonParseError when querying database #58

Open
shinabebel opened this issue Mar 2, 2023 · 2 comments
Open

Get JsonParseError when querying database #58

shinabebel opened this issue Mar 2, 2023 · 2 comments

Comments

@shinabebel
Copy link

The program keep get JsonParseError as following when database (200+ pages) query's response contains some specific pages, but I can't find out any error in json. Do you have any idea? Thank you!

err = JsonParseError {
    source: Error("missing field `type`", line: 0, column: 0),
}
@shinabebel
Copy link
Author

shinabebel commented Mar 2, 2023

I found it caused by person property with removed user which is missing "type" field.
Is it possible to bypass or handle these kind of data?
The document is also mentioned only object and id are always contained

"Assignee": {
    "id": "UbsO",
    "type": "people",
    "people": [
        {
            "object": "user",
            "id": "5aa6xxx-51ea-44e8-98a4-xxxxxxbe1ac",
            "name": "some one",
            "avatar_url": "https://s3-us-west-2.amazonaws.com/public.notion-static.com/cc9ba5d2-8eogo2.png",
            "type": "person",
            "person": {
                "email": "xxxxx@xxxxxx.com"
            }
        },
        {
            "object": "user",
            "id": "78dxxxxx-5116-44b0-9879-xxxxxxff29"
         }
    ]
}

@umialpha
Copy link

met the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants