Robotic Process Automation (RPA)

 View Only
  • 1.  Browser Chrome Failed on RPA v21.0.3

    Posted Fri September 09, 2022 11:22 PM
    Edited by Janis Giovani Tan Fri September 09, 2022 11:26 PM

    Hi,  recently upgrade IBM RPA to v21.0.3 on Premises, on Windows Server 2019 Standard
    However there is an intermittent error while running the script on RPA studio, attended, and unattended bot. The error seems related with the broswer itself, the chrome version is 98.0.4758.102

    FYI, the computer does have internet access.

    There are a few things that has been configured as suggested:

    1. Manual Install WebDriver, referring to the guideline https://www.ibm.com/docs/en/rpa/21.0?topic=tutorials-running-bot-in-environment-without-internet-access

    2. Add chrome driver C:\Windows\System32\config\systemprofile\AppData\Local\WDG Automation\packages\21.0.3.0

    3. Add chrome driver to C:\Users\<user>\AppData\Local\IBM Robotic Process Automation\packages\21.0.3.0

    However the error seems to still hapening.  Please find the error message below:

    [9/10/2022 10:36:01 AM] [19] [ERROR] - The HTTP request to the remote WebDriver server for URL http://localhost:58989/session/e893a39be2816d6be3fdfe5b7ebd5a77/url timed out after 60 seconds.
    [9/10/2022 10:36:01 AM] [18] [ERROR] - Runtime return error: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:58989/session/e893a39be2816d6be3fdfe5b7ebd5a77/url timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.
    at System.Net.HttpWebRequest.GetResponse()
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    --- End of inner exception stack trace ---
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
    at WDG.Automation.Browser.SeleniumBrowser.Navigate(String url)
    at WDG.Automation.Browser.BrowserInstance.<>c__DisplayClass36_0.<Navigate>b__0()
    at WDG.Automation.Browser.BrowserInstance.HandleStaleElement(Action action, Single timeout)
    at WDG.Automation.Browser.WebNavigateCommand.Execute(BrowserContext context)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    [9/10/2022 10:35:57 AM] [17] [ERROR] - Error executing script
    [9/10/2022 10:35:57 AM] [16] [ERROR] - Error executing script
    [9/10/2022 10:35:57 AM] [15] [ERROR] - WDG.Automation.Language.RuntimeException: Error executing command at line 122: webNavigate --url "${powerBiURL}" ---> OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:58989/session/e893a39be2816d6be3fdfe5b7ebd5a77/url timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.
    at System.Net.HttpWebRequest.GetResponse()
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    --- End of inner exception stack trace ---
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
    at WDG.Automation.Browser.SeleniumBrowser.Navigate(String url)
    at WDG.Automation.Browser.BrowserInstance.<>c__DisplayClass36_0.<Navigate>b__0()
    at WDG.Automation.Browser.BrowserInstance.HandleStaleElement(Action action, Single timeout)
    at WDG.Automation.Browser.WebNavigateCommand.Execute(BrowserContext context)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    --- End of inner exception stack trace ---
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.Automation.Language.ScriptInterpreter.<<RunAsync>b__16_0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.AsyncHelper.<>c__DisplayClass5_0.<<StartSTASingleThreaded>b__1>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.AsyncHelper.RunSingleThreaded(Func`1 action)
    at WDG.AsyncHelper.<>c__DisplayClass4_0.<Start>b__0()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.Automation.Language.ScriptInterpreter.<RunAsync>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at WDG.Automation.Base.ExecuteScriptCommand.<Execute>d__29.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    ---> (Inner Exception #0) OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:58989/session/e893a39be2816d6be3fdfe5b7ebd5a77/url timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.
    at System.Net.HttpWebRequest.GetResponse()
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    --- End of inner exception stack trace ---
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
    at WDG.Automation.Browser.SeleniumBrowser.Navigate(String url)
    at WDG.Automation.Browser.BrowserInstance.<>c__DisplayClass36_0.<Navigate>b__0()
    at WDG.Automation.Browser.BrowserInstance.HandleStaleElement(Action action, Single timeout)
    at WDG.Automation.Browser.WebNavigateCommand.Execute(BrowserContext context)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()<---

    [9/10/2022 10:35:28 AM] [14] [ERROR] - Error executing script
    [9/10/2022 10:35:28 AM] [13] [ERROR] - OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:58989/session/e893a39be2816d6be3fdfe5b7ebd5a77/url timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out.
    at System.Net.HttpWebRequest.GetResponse()
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    --- End of inner exception stack trace ---
    at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
    at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
    at WDG.Automation.Browser.SeleniumBrowser.Navigate(String url)
    at WDG.Automation.Browser.BrowserInstance.<>c__DisplayClass36_0.<Navigate>b__0()
    at WDG.Automation.Browser.BrowserInstance.HandleStaleElement(Action action, Single timeout)
    at WDG.Automation.Browser.WebNavigateCommand.Execute(BrowserContext context)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()


    ------------------------------
    Janis Giovani Tan
    ------------------------------


  • 2.  RE: Browser Chrome Failed on RPA v21.0.3

    Posted Tue September 20, 2022 11:29 AM

    Hi Janis,

    I've had this same problem trying to create robots that access government websites (some block robot access), the way around the problem probably doesn't work for all cases, but I'll explain my case so that if yours is similar you can get an idea of what can be done:

    The site that I was trying to navigate with the robot makes several requests internally to consolidate everything in a single page, being only a piece (iframe) of this page important for the robot (the part that has the information that the robot must obtain), the problem was solved by identifying the direct url for this iframe (using chrome's DevTools) and configuring the robot to access it directly.



    ------------------------------
    Pedro Botolli Santos
    ------------------------------



  • 3.  RE: Browser Chrome Failed on RPA v21.0.3

    Posted Wed October 05, 2022 05:40 AM
    Hi Pedro, thanks for your suggestion.
    Had check on the destination website, however it seems there is no iframe in the page itself.

    Wonder if there is other possible reason?

    ------------------------------
    Janis Giovani Tan
    ------------------------------



  • 4.  RE: Browser Chrome Failed on RPA v21.0.3

    Posted Wed September 28, 2022 05:06 AM
    Hi Janis,

    I had a similar Chrome browser problem yesterday. It worked fine in Studio, but failed when running scheduled.  I seem to have 'fixed' it by using --loaduserprofile

    webStart --name "${browserInstance}" --type "Chrome" --loaduserprofile  --commandexecutiontimeout "${timeoutPeriod}" --pageloadtimeout "${timeoutPeriod}" --implicitwaittimeout "${timeoutPeriod}" --asynchronousjavascripttimeout "${timeoutPeriod}" browserId=value

    I would be interested to hear whether that helps in your case.  FYI: It seems like a bug to me!

    ------------------------------
    NIGEL CROWTHER
    ------------------------------



  • 5.  RE: Browser Chrome Failed on RPA v21.0.3

    Posted Wed October 05, 2022 05:48 AM
    Hi Nigel,

    Yes, actually --loaduserprofile did the trick, thanks for your suggestion
     
    However, I understand its limitation that:  robot can only have one active Chrome instance with the user profile at a time.
    And it does not suit with my current use case, as the aim is to run multiple robot concurrently which means multiple browser will be open as well.



    ------------------------------
    Janis Giovani Tan
    ------------------------------



  • 6.  RE: Browser Chrome Failed on RPA v21.0.3

    Posted Wed January 25, 2023 02:06 PM
    Thanks for providing this suggestion, I was having a similar issue but now it seems to be working.

    ------------------------------
    Nic Hertz
    ------------------------------