Error in Workflow - Request Failed with Status Code 400

I have a script that takes a recurring task in Notion. Once I click complete on it in Notion, the workflow checks for completed tasks and then reassigns them based on the recurring interval. It has worked beautifully so far, but now all of the sudden I am getting a 400 error code:

ErrorRequest failed with status code 400

at null.createError (/opt/ee/node_modules/axios/lib/core/createError.js:16:15) at null.settle (/opt/ee/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/opt/ee/node_modules/axios/lib/adapters/http.js:322:11) at IncomingMessage.emit (events.js:412:35) at null.endReadableNT (internal/streams/readable.js:1334:12) at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

Hi @bwgolf24

First off, welcome to the Pipedream community. Happy to have you!

An HTTP status in the 400 range means that the API you’re trying to communicate with, in this case Notion, was unable to process the request because the query is malformed.

It’s possible that the resource you’re trying to interact with in Notion, such as a page or block, doesn’t exist anymore or has changed it’s internal name.

Or maybe the action requires more data that’s currently missing when the workflow runs.

Could you tell us more about the workflow? Perhaps that will lead to a clue.

Thanks! So essentially I have a list of tasks. Notion doesn’t do recurring tasks so this just takes anything that has a recurring property and looks at it and then compares it to the parameters in pipedream and does it. I’m happy to share whatever someone would need, I don’t think anything has changed internally, perhaps a recurring task was deleted, but that shouldn’t mess up the flow based on what I’m seeing.

it came from this - Notion Recurring Tasks - Pipedream Workflow

Thanks for the context @bwgolf24

I’m seeing an error in the logs from Notion’s side during the workflow:

The property type in the database does not match the property type of the filter provided: database property url does not match filter select

Looks like the Database you’ve configured may have been deleted?

That’s what is weird - it is literally my daily task management database that I use for 10 hours a day. It hasn’t been deleted or changed in any way, that’s what is so strange.

I recommend reaching out to the Workflow Developer for support on this, they have more context of the Notion API and the assumptions the custom Node.js code is making on the data that’s available.

It must be a mismatch of data between what’s in the action vs what the Notion API is expected.

Thanks -