problem with the execution of google.script.run

207 views
Skip to first unread message

JUAN CARLOS ARIAS QUINTERO

unread,
Jan 7, 2021, 12:27:02 PM1/7/21
to google-apps-sc...@googlegroups.com
Good day.
I have a web app with google app script, which, from JS executes a stored sql procedure, and this procedure, delays in its execution. This application with google chrome works 100% well, but with mozilla, as this SQL procedure delays in completing its execution, I detect that automatically returns to run the google.script.run that invokes the function that runs the procedure sql. At the end of the execution, the browser throws me the error "NetworkError: An error occurred in the connection due to HTTP 0". 
How can I prevent google.script.run from executing the function again automatically?
Thank you for your help

Fco. Javier Lledó Fuster

unread,
Jan 7, 2021, 4:51:05 PM1/7/21
to google-apps-sc...@googlegroups.com
Hola,

Podrías probar metiéndolo en un try/catch para que todo quede dentro del try o usando Utilities.sleep para pausar la ejecución un tiempo determinado.

Ya nos cuentas. Saludos.

El jue., 7 ene. 2021 18:27, 'JUAN CARLOS ARIAS QUINTERO' via Google Apps Script Community <google-apps-sc...@googlegroups.com> escribió:
Buen día.
Tengo una app  web con google app script, la cual, desde JS ejecuta un procedimieto almacenado sql, el cual demora en su ejecución. Está aplicacion con google chrome funciona 100% bien, pero con mozilla,al demorar la consulta sql, veo que automáticamente vuelve a ejecutar el google.script.run  que invoca a la funcion que ejecuta el procedimiento sql. Al finalizar la ejecución, el navegador me arroja el error "NetworkError: Se ha producido un error en la conexión debido a HTTP 0". 
¿Como puedo evitar que google.script.run vuelva a ejecutar la función automáticamente?
Agradezco su ayuda

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/9dd0dc1d-ab68-4036-8e9d-dfb4f82422edo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages