Retry the same block when proxy fail

Hello, im having an problem.

when the proxy fail in one http request block the status goes to FAIL and start all over again.
there is anyway to set only to retry the specific block that fail with the proxy without running the check all again? i mean retry that block with the same proxy again until it get some awnser.

im asking this because in my script if i get fail because the proxy in the middle of the check i lose an one time confirmation link and i would like to retry with proxy until i get some response.

thanks

i found a solution here

data.UseProxy = true;
data.Proxy = new Proxy("IP", PORT, ProxyType.Http, "USER", "PW");

try
{
BLOCK:HttpRequest
  url = "https://google.com"
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK
}
catch (Exception ex)
{
  data.ERROR = ex.ToString();
}

after that i set this:

IF STRINGKEY @data.ERROR Contains "canceled"
JUMP #LINKCONFIRMACAO
END
IF STRINGKEY @data.ERROR Contains "200"
JUMP #LINKCONFIRMACAO
END

and the #LINKCONFIRMACAO goes before the link i need.

but one question… how i “clear” the data.ERROR ?

data.ERROR = "";
1 Like