Thanks again for replying! So a quick overview of the workflow is exactly how you showed me earlier-
Trigger: New page in Notion Database
Retrieve block
Chat Gpt Prompt
Append block: Write onto the page
Because of the amount I am writing - I have about 11 Chat GPT prompts and 6 append blocks in the one workflow.
So here are the error requests and where they tend to be:
Chat GPT Prompt: - so when I rerun this it works fine - any solutions to stop this happening? do the ‘flow rerun’ mentioned by the bot? Happened in multiple workflows.
Error - Request failed with status code 500
{“error”:{“message”:“The server had an error while processing your request. Sorry about that!”,“type”:“server_error”,“param”:null,“code”:null}}
at null.createError (/pipedream/dist/code/fe13c30c87ab5880186b1834127d9f2bc78840ae70c6b7199e8430ea7e9f18e5/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/pipedream/dist/code/fe13c30c87ab5880186b1834127d9f2bc78840ae70c6b7199e8430ea7e9f18e5/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/pipedream/dist/code/fe13c30c87ab5880186b1834127d9f2bc78840ae70c6b7199e8430ea7e9f18e5/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (events.js:412:35)
at null.endReadableNT (internal/streams/readable.js:1333:12)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)
Chat GPT - so when I rerun this it works fine - any solutions to stop this happening? do the ‘flow rerun’ mentioned by the bot? Happened in multiple workflows.
Error - Request failed with status code 503
{“error”:{“message”:“That model is currently overloaded with other requests. You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the request ID fcf35e6bcb6baad6444604df5b0b2924 in your message.)”,“type”:“server_error”,“param”:null,“code”:null}}
at null.createError (/pipedream/dist/code/fe13c30c87ab5880186b1834127d9f2bc78840ae70c6b7199e8430ea7e9f18e5/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/pipedream/dist/code/fe13c30c87ab5880186b1834127d9f2bc78840ae70c6b7199e8430ea7e9f18e5/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/pipedream/dist/code/fe13c30c87ab5880186b1834127d9f2bc78840ae70c6b7199e8430ea7e9f18e5/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (events.js:412:35)
at null.endReadableNT (internal/streams/readable.js:1333:12)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)
Append block - So in the append block I will have multiple ‘Mark Up’ from multiple chat gpt prompts. Basically I do not do an append block after every chat gpt prompt. So I resolved this by splitting the ‘Mark Up’ contents to another append block. I am cool with that. Unless you have a better solution? Happened in some workflows.
APIResponseError
body failed validation: body.children.length should be ≤ 100
, instead was 149
.
at null.buildRequestError (/pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/node_modules/.pnpm/@notionhq+client@2.2.5/node_modules/@notionhq/client/build/src/errors.js:162:16)
at Client.request (/pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/node_modules/.pnpm/@notionhq+client@2.2.5/node_modules/@notionhq/client/build/src/Client.js:347:54)
at process.processTicksAndRejections (internal/process/task_queues.js:95:5)
at Object.run (file:///pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/code/actions/append-block/append-block.mjs:79:25)
at global.executeComponent (/var/task/launch_worker.js:225:22)
at MessagePort.messageHandler (/var/task/launch_worker.js:722:28)
Append Block - no idea. When I reran it it worked fine - happened only once.
FetchError
Invalid response body while trying to fetch https://api.notion.com/v1/blocks/09467364-9312-4ac3-8298-ccb12926602f/children: read ECONNRESET
at Gunzip.null (/pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/node_modules/.pnpm/node-fetch@2.6.11/node_modules/node-fetch/lib/index.js:400:12)
at Gunzip.emit (events.js:412:35)
at null.emitErrorNT (internal/streams/destroy.js:106:8)
at null.emitErrorCloseNT (internal/streams/destroy.js:74:3)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)
Append Block - this is sooooo annoying. My content requires a table with data generated by a chatgpt prompt. It works for 70-80% of the time. But every now and again - even though the chat gpt returns a table at my request, the Append block will not write it on the page. It will have the below error. And as far as I can see - it is only 2 or 3 columns wide and it worked in other workflows with no issues. Really annoying because I want the table. To resolve it I go back to the prompt and make sure it doesn’t give me the table, but just the data. Then I will go into the pages in notion and redo them as a table.
APIResponseError
Content creation Failed. Fix the following: Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table Number of cells in table row must match the table width of the parent table
at null.buildRequestError (/pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/node_modules/.pnpm/@notionhq+client@2.2.5/node_modules/@notionhq/client/build/src/errors.js:162:16)
at Client.request (/pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/node_modules/.pnpm/@notionhq+client@2.2.5/node_modules/@notionhq/client/build/src/Client.js:347:54)
at process.processTicksAndRejections (internal/process/task_queues.js:95:5)
at Object.run (file:///pipedream/dist/code/5f0ecdc3fb159213079a7c0d5875fdac0f9e6758ce148df24ee70679703980b4/code/actions/append-block/append-block.mjs:79:25)
at global.executeComponent (/var/task/launch_worker.js:225:22)
at MessagePort.messageHandler (/var/task/launch_worker.js:722:28)
Hope this helps