500 error on workdocs

When:
I started having this problem yesterday (Oct 8, 2024 around 12PM EST). Additionally, Workdocs was down maybe a couple weeks ago and I had the same 500 error.

Problem:
When trying to update a workdoc block with updateDocBlock or via a mutation, i.e.

mutation {
  update_doc_block (block_id: "7f8c145-989f-48bb-b7f8-dc8f91690g42", content: "{\"alignment\":\"left\",\"direction\":\"ltr\",\"deltaFormat\":[{\"insert\":\"new block\"}]}") {
    id
  }
}

…I get a 500 error on this url:

PUT https://my-subdomain.monday.com/documents/blocks/57bf99e9-b0a6-4742-9a99-7f30f546e497/update_content

What Happens:

  1. I execute my code
  2. The text updates in the GUI
  3. An error message is displayed: “Oops, something went wrong. We couldn’t save your recent changes, please refresh.”
  4. I get a 500 error in my browser dev tools and part of the response is a “We are having technical difficulties page.”
  5. When I reload the page the changes made in 1. are not persisted.

Expected behavior:
Changes should persist when updating a doc block. My code that previously worked is now not working.

To Reproduce:
Run the workdoc quickstart.

I would share some screenshots, but for some reason image uploads aren’t working.

Hello there @tylerb,

Would you be able to please fill this form adding as much information as possible to it (such as account ID, board IDs, item IDs, timestamps, etc.) so that our team can take a look into it?

Thanks Matias!

I don’t have the IDs, but if/when it happens again I’ll file a full report on the form.

For others that might be encountering this problem:

I figured out that starting a brand new workdoc or sometimes adding some blocks to the same document and operating on them will cause my functions to work. It’s almost like updating a specific block is rate-limited (and my testing is frequently on the same sets of blocks in a doc).

Sounds like a plan @tylerb !