Users saw 404 and cannot access all server-side render pages whose data sources come from Notion.
Notion pushed breaking changes of API today morning that both acceptable body params and partial structure of response data were updated. It broke all notion pages accidentally.
START RequestId: bbbf7b0e-c6e5-410f-9725-6760b1305a94 Version: $LATEST
2021-10-06T04:47:20.316Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 INFO �[97m[Wed, 06 Oct 2021 04:47:20 GMT][cacheClient] cache MISS | getNotionPage | key: production_1728db20-8ddd-4388-b355-7132d35738e4�[39m
2021-10-06T04:47:21.085Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 INFO �[90m[Wed, 06 Oct 2021 04:47:21 GMT][cacheClient] cache HIT | lqip | key: production_https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F40520727-7869-44cf-a65d-b61183a90975%2FASUS-eeepc-Logo.png?table=block&id=1728db20-8ddd-4388-b355-7132d35738e4&cache=v2�[39m
2021-10-06T04:47:21.231Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 INFO �[97m[Wed, 06 Oct 2021 04:47:21 GMT][cacheClient] cache MISS | getNotionPostsFromTable - getPage | key: production_4fe6f6a7546709ee1be9d1e923127c63aef75ff3�[39m
2021-10-06T04:47:21.494Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 WARN NotionAPI collectionQuery error Response code 400 (Bad Request)
2021-10-06T04:47:21.810Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 WARN NotionAPI collectionQuery error Response code 400 (Bad Request)
2021-10-06T04:47:22.100Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 INFO �[97m[Wed, 06 Oct 2021 04:47:22 GMT][cacheClient] cache MISS | getNotionPostsFromTable - queryPosts | key: production_3a649e6b52fba33d40c42d937fe0a41594b8104d�[39m
2021-10-06T04:47:22.229Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 ERROR �[91m[Wed, 06 Oct 2021 04:47:22 GMT][singlePage] HTTPError: Response code 400 (Bad Request)�[39m
2021-10-06T04:47:22.229Z bbbf7b0e-c6e5-410f-9725-6760b1305a94 WARN �[93m[Wed, 06 Oct 2021 04:47:22 GMT][page] redirect to 404 page | notionPath: /article/eeepc-relife-plan-1728db208ddd4388b3557132d35738e4�[39m
END RequestId: bbbf7b0e-c6e5-410f-9725-6760b1305a94
REPORT RequestId: bbbf7b0e-c6e5-410f-9725-6760b1305a94 Duration: 4606.08 ms Billed Duration: 4607 ms Memory Size: 1024 MB Max Memory Used: 156 MB Init Duration: 421.33 ms
{
"result": {
"type": "reducer",
"reducerResults": {
"collection_group_results": {
"type": "results",
"blockIds": [
"231052a6-9034-45b4-b7de-b7d2b1f1962d",
"db0c4004-93bd-4a1a-83c2-fc83bb8c8c3a",
"5428cadf-17cc-408c-bbe4-bc11c982df6d"
]
},
"table:uncategorized:title:count": {
"type": "aggregation",
"aggregationResult": {
"type": "number",
"value": 3
}
}
}
},
"recordMap": { ... }
}
npm i https://static.dazedbear.pro/notion-client-4.9.3-patch.tgz