Simplification of errors content

Hello guys,

Hope you are all doing well.

Sometimes when I get errors, like image below it occupies the screen.


Is there a way to handle the error and avoid message of the similar type where I can set up a message error label?

generally like this

if response content contains "<!DOCTYPE"
then "error occurred"
else continue with processing

in your case the error message is


1 Like

Given that error, you probably need to fix things so that the error cannot occur, that is, to prevent a string that cannot be decoded by google apps script!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.