Skip to main content

Board hangs on getting items in GraphQL

  • May 26, 2023
  • 7 replies
  • 377 views

  • Participating Frequently

Hi everybody.
I try to get board items using boards/items GraphQL get query. It worked fine, but after some period this query is getting hang and does not respond. Board contains more than 1000 records, also with subitems.
But If I duplicate this board, this query works fine against it.
So I think original board contains some garbage and cannot be read.
Is there any way to make it healthy again?

Thanks, Sergey.

7 replies

basdebruin
  • Community Expert
  • May 26, 2023

What kind of response did you get from GraphQL? It could very well be a complexity error which was thrown. If you try the same query while you got new credits (once every minute) it might work again.


  • Author
  • Participating Frequently
  • May 29, 2023

Well, I just get “Upstream request timeout” error after 70 seconds. When I repeat, I just get the same error and cannot move forward.
Duplicating of this board to new board solves the problem. So I think there is some garbage inside the board that prevents to read the data.
Is there any way to cleanup/reindex the board?


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • May 30, 2023

Hello @snb,

Which query are you using?


  • Author
  • Participating Frequently
  • May 31, 2023

{ boards (ids: SOME_ID) { items { id name column_values { title type value} } } }


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • May 31, 2023

@snb what if you use pagination as explained here?

You could limit the items per page and then just go trough the pages until you get all the results.

To avoid hitting the rate limits, you could query for the complexity points usage, quota and seconds until the next reset and use that information to use timeouts when the limit is about to be reached.

{
  boards(ids: 1234567890) {
    items(limit: 25, page: 1) {
      id
      name
      column_values {
        title
        type
        value
      }
    }
  }
}

  • Author
  • Participating Frequently
  • June 1, 2023

Thanks, I will try!


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • June 1, 2023

Let us know how that goes!