malinkang / weread2notion-pro

2.35k stars 4.61k forks source link

运行报错:Client error '400 Bad Request' for url 'https://api.notion.com/v1/databases/None' #24

Closed xushuhui closed 5 months ago

xushuhui commented 5 months ago

按照微信公众号教程部署启动后,在 action 中 run job 失败,报错信息如下

Run python -u scripts/read_time.py
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/notion_client/client.py", line 118, in _parse_response
    response.raise_for_status()
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/httpx/_models.py", line 761, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://api.notion.com/v1/databases/None'
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 "/home/runner/work/weread2notion-pro/weread2notion-pro/scripts/read_time.py", line 85, in <module>
    notion_helper = NotionHelper()
twi1ight00 commented 5 months ago

一样的问题,蹲一个解决方案

ytxCells commented 5 months ago

一样的问题

TianLanhe commented 5 months ago

一样的问题

mhs28 commented 5 months ago

me as well

xushuhui commented 5 months ago

已经解决,https://spice-witch-210.notion.site/c2ade9452933466caeebe2f0390b33d9?pvs=4,关闭了

TianLanhe commented 5 months ago

求问下怎么解决呀,能否分享下