Toolbox plugin - collection of utility elements

@eagledev you’re welcome. It was good timing, was already on the to-do list and I’ve been testing similar changes over the last few days.

2 Likes

hi,
i have this error with the toolbox pluggin in server script, someone nows how to solve it?
how to increase the max time before take off the code?

Workflow error - Plugin action Server script PASO 1 error: 2023-06-28T08:54:09.512Z a478816f-8cd1-4bc7-8be5-e280fbdddde1 Task timed out after 30.35 seconds

thank u!

Server script is a plugin server action, which runs the code on AWS Lambda, with the default configuration of 30 seconds timeout.

What are your options?

  • Restructure your code so each script can complete under 30 seconds
  • Negotiate with Bubble to have a server action with a longer or dev configurable timeout
  • Use API connector to run your own configured AWS Lambda
  • Other third party server to send results to the bubble app via webhook

Good morning Mishav,

First of all, thank you for creating plugins for bubble.io, I think they are very useful for the community.

In relation to the query to be able to extend the execution time of a server script of the tool box tool, tell you that the bubble.io support service has told me that the maximum execution time on their servers is 300 seconds, approximately 5 minutes.

I don’t know if this information is interesting for you to increase the maximum time of your plugin or, on the contrary, you have voluntarily limited the time to 30 seconds.

Either way, I’m just telling you so you know. with the sole intention of informing you of what they have told me.

thank you so much

Oh wow @ramon.roig.alfonso that is exciting news! It has been a long time since I last tested timeouts, I’ll test on the weekend and see if server script can take advantage of the maximum.

Thanks for investigating further.

I have tested and I cannot get execution to go longer than 30 seconds. Did Bubble mention AWS Lambda configuration?


this is his response

@ramon.roig.alfonso the 300 seconds mentioned is for the workflow, meaning all the steps.

Can you ask how they have configured AWS Lambda for plugin server side actions?
Here is the doc for configuration including timeout: Configuring Lambda function options - AWS Lambda

Is there an instruction quide anywhere on how I use this so that I can get some of the answers myself without bugging the developer?

Workflows will time out after 300 seconds, and server scripts and plugins will time out after 30 seconds. Please let me know if you have any other questions!
this is his version now!!!

server only 30 seconds, sorry for the inconvenience Mishav.

Aw, I got excited at the idea it was longer. Maybe Bubble can change it in the future.
Thanks for completing the investigation.

FYI the API connector can wait up to 2 minutes, maybe longer (my test rig timed out in 2mins), so a possible workaround is put any long running fetch calls into the API connector, and process the output in a server script.

Good question! This forum thread is it right now. I’m creating documentation as part of an upgrade to Toolbox, coming soon.

1 Like

plugin is great. I have tons of code in it.

have an issue in my Javascript action with trying to get an if statement to compare the value of a dropdown to a text value.

The selected index value in the dropdown is set to “Upper Case”

I use document.getElementBy().value to get the value of the dropdown.

var psw = document.getElementById(‘PGPASSWORDSTARTSWITH’).value;

I then use the console statement to show me the value in psw which shows as being “Upper Case”.

console.log(psw);

I then have an if statement that compares the value of psw to Upper Case.

if (psw == 'Upper Case") {
console.log(“psw_value is Upper Case”);
}

followed by another console statement to allow the code to show me that it processed the if statement.

But the if statement doesn’'t appear to run - I’m guessing because it doesn’t validate the comparison .

I’ve tried a number of other scenarios (include SelectedIndex to get the comparison to work and nothing seems to work. Not sure how to get this to work.

Solved in another topic.

On your deleted question about updating a repeating group, it is updated automatically if its source is changed, or can be updated via a workflow step to a new source.
One example is in demo app run-js

Thanks - got everything to work.

Only one thing to mention. When using the Rich Text Editor, if you copy and paste into the editor and then save, a lot of times, the spacing in the code goes from single to double spacing between every line. And your choice is to either manually respace ever line or delete the last changes using undo. Sometimes you can click on the Remove formatting button and it will remove all the extra spacing and formatting, but not every time. I’ve had to go back numerous times and manually respace things or re-enter the code instead of using paste. Also - sometimes I can copy the text to notepad and then cut/copy/pasted it in. Not a big deal in the scheme of things, but frustrating when it happens.

It would be helpful if you could raise a bug report with Bubble on this. It affects every plugin with a “long text” field.

Did a bug report.

1 Like