Skip to main content

Handling rate limit errors in the front end

  • March 15, 2022
  • 3 replies
  • 1461 views

I have an app that provides a board view and stores all data using the storage API. The implementation of this storage API by monday.com involves retrieving data from the server and can result in rate limit errors which are propagated back through the SDK’s storage API in the form of cryptic errors relating to Window.postMessage and a DOMException.
How can an iframe based app protect against this? There seems to be no reliable way since the SDK doesn’t return the typical rate limit response information such as retryAfter.

3 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • March 16, 2022

Hello @Roobrick!

You can create a workaround by changing the queries you are using in a way in which you can lower the complexity points being used.

If you send us an email to appsupport@monday.com with the queries that you use and an explanation of your app, we can gladly take a look and try to help you avoid this issue 🙂

Looking forward to hearing from you!

Cheers,
Matias


  • Author
  • New Participant
  • March 17, 2022

Hi @Matias.Monday ,

I’m calling the front end SDK API monday.storage.instance.getItem(storageKey) sgo it is likely already about as simple as can be.

An alternate workaround would be to provide some bulk operations such as a getItems API.

Regards,
Dugald


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • March 21, 2022

Hello again,

I replied to your email!

Talk to you over there 🙂

Cheers,
Matias