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

我从hexo导入到notion出现错误 #3

Open
handbye opened this issue Mar 8, 2024 · 0 comments
Open

我从hexo导入到notion出现错误 #3

handbye opened this issue Mar 8, 2024 · 0 comments

Comments

@handbye
Copy link

handbye commented Mar 8, 2024

    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://api.notion.com/v1/databases/33436a61114b418db333c520f5757e3b'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/bingo/Downloads/NoteTrail/hexo.py", line 237, in <module>
    HexoParser.update_properties(database_id_)
  File "/Users/bingo/Downloads/NoteTrail/hexo.py", line 44, in update_properties
    notion_client.update_database_properties(database_id, properties=properties)
  File "/Users/bingo/Downloads/NoteTrail/notetrail/my_notion_client.py", line 40, in update_database_properties
    return self.client.databases.update(database_id=database_id, properties=properties)
  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/notion_client/api_endpoints.py", line 168, in update
    return self.parent.request(
  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/notion_client/client.py", line 194, in request
    return self._parse_response(response)
  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/notion_client/client.py", line 126, in _parse_response
    raise APIResponseError(response, body["message"], code)
notion_client.errors.APIResponseError: body failed validation. Fix one:
body.properties.Categories.number should be defined, instead was `undefined`.
body.properties.Categories.formula should be defined, instead was `undefined`.
body.properties.Categories.select should be defined, instead was `undefined`.
body.properties.Categories.multi_select should be an object, instead was `[]`.
body.properties.Categories.status should be defined, instead was `undefined`.
body.properties.Categories.relation should be defined, instead was `undefined`.
body.properties.Categories.rollup should be defined, instead was `undefined`.
body.properties.Categories.unique_id should be defined, instead was `undefined`.
body.properties.Categories.title should be defined, instead was `undefined`.
body.properties.Categories.rich_text should be defined, instead was `undefined`.
body.properties.Categories.url should be defined, instead was `undefined`.
body.properties.Categories.people should be defined, instead was `undefined`.
body.properties.Categories.files should be defined, instead was `undefined`.
body.properties.Categories.email should be defined, instead was `undefined`.
body.properties.Categories.phone_number should be defined, instead was `undefined`.
body.properties.Categories.date should be defined, instead was `undefined`.
body.properties.Categories.checkbox should be defined, instead was `undefined`.
body.properties.Categories.created_by should be defined, instead was `undefined`.
body.properties.Categories.created_time should be defined, instead was `undefined`.
body.properties.Categories.last_edited_by should be defined, instead was `undefined`.
body.properties.Categories.last_edited_time should be defined, instead was `undefined`.
body.properties.Categories.button should be defined, instead was `undefined`.
body.properties.Categories.location should be defined, instead was `undefined`.
body.properties.Categories.verification should be defined, instead was `undefined`.
body.properties.Categories.last_visited_time should be defined, instead was `undefined`.
body.properties.Categories.name should be defined, instead was `undefined`.

这种情况该怎么解决呢,谢谢

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

1 participant