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

JsonParseError when a page contains not empty Files property. #64

Open
gloridifice opened this issue Feb 18, 2024 · 1 comment
Open

Comments

@gloridifice
Copy link

When I query a database whose pages contain not empty Files property, this error occurs.

JsonParseError { source: Error("missing field `url`", line: 0, column: 0) }

Source:

    let works_pages = notion_api
        .query_database(works_database.id.clone(), DatabaseQuery::empty())
        .await.unwrap()
        .results;
@raspirin
Copy link

A collaborator of @gloridifice here. We found that due to the notion api change, the Page struct does not correspond to what the server returns, which causes this JsonParseError.

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