HyunsDev / opize-calendar2notion-syncbot

Calendar2notion 동기화봇
0 stars 0 forks source link

노션 데이터베이스 삭제 후 업데이트 시도하는 문제 #28

Open HyunsDev opened 1 year ago

HyunsDev commented 1 year ago

Bug Report

Data

{
  "body": "{\"object\":\"error\",\"status\":400,\"code\":\"validation_error\",\"message\":\"Can't update a page with an archived ancestor. You must unarchive the ancestor before updating.\",\"request_id\":\"...\"}",
  "status": 400,
  "code": "validation_error",
}

Stack

Error: 노션 API 잘못된 요청
    at Object.callback (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/assist/notionAssist/apiErrorFilterRule.js:11:19)
    at notionAPIErrorFilter (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/assist/notionAssist/apiErrorFilter.js:21:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /var/www/opize-calendar2notion-syncbot/dist/src/module/worker/assist/notionAssist/api.decorator.js:12:62
    at async retry (/var/www/opize-calendar2notion-syncbot/dist/src/utils/retry.js:6:16)
    at async desc.value (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/assist/notionAssist/api.decorator.js:12:25)
    at async NotionAssist._updatePage (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/assist/notionAssist/index.js:95:9)
    at async NotionAssist.CUDPage (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/assist/notionAssist/index.js:82:13)
    at async Worker.syncEvents (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/Worker.js:142:13)
    at async Worker.runSteps (/var/www/opize-calendar2notion-syncbot/dist/src/module/worker/Worker.js:43:13)
HyunsDev commented 1 year ago

Can't update a page with an archived ancestor. You must unarchive the ancestor before updating. 라는 메세지로 보아 데이터베이스가 삭제된 것으로 추정됨. database_not_found로 연결