Lately, I have a persistent problem caused when I try to upload data to a Monday Board via the GraphQL API.
I know a similar problem when reading a board’s content, and using the “limit” param to overcome it. However, it happens not for reading content, but writing to the board.
When I try to render a json response as I used to do for the past months, I receive an HTML snippet with the following strings:
"cf-error-details cf-error-504">
<h1>Gateway time-out</h1>
<p>The web server reported a gateway time-out error.</p>
<ul>
<li>Ray ID: XXX </li>
<li>Your IP address: XXX </li>
It looks like the issue might lie in the amount of data that is being retrieved. Just to be sure, would you please send this information to our email address so we can take a closer look?
Is there any update on this?
I am updating a lot of records and this problem happens multiple times a week now.
There is still no option to update multiple items at once and therefore I loop trough my array and update / insert about 200 to 400 items on a single Monday board. It would be nice if there would be a API error instead of a snippet of HTML.
This does not seem to be a generalized issue but rather something particular with the other account, and now you experiencing something similar, but probably not related.
You can update many items at once by using a mutation like this one:
mutation {
item1: create_item(item_name: "New item 1", board_id: 12345678) {
id
name
}
item2: create_item(item_name: "New item 2", board_id: 12345678) {
id
name
}
}
About the error you are experiencing, I would love to know more about it. Could you send us an email to appsupport@monday.com so we can take a closer look?
If you are getting a timeout error, then your syntax is probably correct. You just need to use much less data in your request, to avoid that error. If our server can not perform the action you are asking in 60 seconds, it will time out. Using less data/less mutations will probably solve the issue.