MartinPicc / budibase-interval-plugin

Plugin for budibase, set time interval to run actions.
16 stars 4 forks source link

"Conflict" red error on Budibase #5

Open SICUFI opened 1 year ago

SICUFI commented 1 year ago

Hello!

We're using this very useful plugin on one of our apps. The problem is that when the page where Interval is used is left open for long periods of time we start getting a red error message on the page from budibase that states "Conflict". The plugin itself seems to be still working as the page updates itself but this message can be misleading for users who think that there's something wrong.

I attach screen of the error and what is recorded in the browser console.

I don't know if this issue is related to the plugin or to budibase itself but this started happening after the introduction of Interval so i thought to ask here first

Thank you! budierror1 budierror2

MartinPicc commented 1 year ago

Hi, Do you use the interval plugin to trigger a request to a datasource or API? If yes and as you have HTTP 409, something seems wrong with the request, but not so much with the interval, as it continues to trigger as expected.

What's the interval value? Did you try to decrease it? Maybe the interval value is too small, hence a request is not finished processing before the next one is sent, which creates a conflict in the API or datasource?

Otherwise, I don't see what could be the problem, as the plugin doesn't trigger any request by itself that could result in HTTP 409

SICUFI commented 1 year ago

Hi,

sorry for late reply, yes there are 3 intervals on the same page that refreshes 3 separate data providers. Current value is set to 10 seconds, I'll try to increase it to 30 and see if this is the problem as you suggest

Will get back once I've got more data

Thank you!