Unhandled Runtime Error
Error: There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.
with status code 500\n at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12)\n at XMLHttpRequest.onloadend (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:121:66)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":
This error happened while generating the page. Any console logs will be displayed in the terminal window.
error - APIResponseError: Insufficient permissions for this endpoint.
at buildRequestError (C:\Users\yuki\Documents\git\blog\node_modules\@notionhq\client\build\src\errors.js:162:16)
at Client.request (C:\Users\yuki\Documents\git\blog\node_modules\@notionhq\client\build\src\Client.js:347:54)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getComments (webpack-internal:///(api)/./src/server/notion/comments.ts:13:22)
at async handler (webpack-internal:///(api)/./pages/api/notion-blog/comments.ts:14:28)
at async Object.apiResolver (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\api-utils\node.js:372:9)
at async DevServer.runApi (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\next-server.js:488:9)
at async Object.fn (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\next-server.js:751:37)
at async Router.execute (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\router.js:253:36)
at async DevServer.run (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:384:29)
at async DevServer.run (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\dev\next-dev-server.js:743:20)
at async DevServer.handleRequest (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:322:20) {
20/#40 mainにマージする前にdebugしたい。カッコ悪いから。
PR: #41
こういうやつ。
![image](https://github.com/ECMaker/blog/assets/97171717/b9d2d3b8-5ee9-42e8-a6f1-b3e244ffdac9)
![image](https://github.com/ECMaker/blog/assets/97171717/bf84a2b7-3f00-49b5-a11c-0a9e67f5eabb)
1.