Error #102: Lost contact to website

Version 9.3.3 with Firefox 128.0:
It’s often happen error#102 Lost contact to website
In earlier 9.2.6, it’s also often happened with [Error #230: Page load 60 seconds time out] after executing open command., but it’s already 200 finished loading the web.

1 Like

Hi, can you please post a test macro or maybe a video of the issue?

I’m getting this error repeatedly too. I’ve not used ui.vision for 6 months and on return I’m getting this error that I’ve not seen before with this macro. It is clearly indexing the tab (selectWindow) and the tab is there. The website and ui.vision have changed over the 6 months so not sure where the cause is.

The macro runs 24/7 and got the error after 7 hours, so it may be a memory problem. The macro restarts itself (browser & macro) after 40 minutes and so error is happening after multiple restarts. I’ll check the memory next time it goes ‘Aw, snap’ / crashes

@PT7 The error message itself is new indeed. It is now logging an error where before it would only freeze,

That is surprising, because the Ui.Vision/Browser closing and restart cleans the memory. So I doubt it is a memory issue. If you can, a video of the error would be helpful.

I don’t know how to trigger the error to video it. Currently the macro is running without an error for an hour now. I’m wondering if something different happens on the website during one of the 40 minute periods that causes a memory problem. I’ll check the task manager after the next crash.

That’s great that its a new message, instead of freezing. I’ll have a go at restarting the macro when an error occurs. Interestingly it only occurs at one specific selectWindow and not initially. I suspect its a combo of my slow linux pc and the website’s heavy javascript (185k). The javascript memory builds over time.

May be you’ll think it’s pointless sometime it’s happend due to other automation extension like few days ago i was suffering same situation little bit different but un expected that website was loading correctly but my script crash just after few steps it’s resolved when i turned off UiPath extension …
may be you’ve problem like this and also make sure don’t open more than one instance of browser … i mean just open browser of one profile.

I only use UiVision with Firefox without other extensions.
This Error is similar to below for earlier version 6.2.6

  1. [error] Could not establish connection. Receiving end does not exist.
  2. [error] No connection to browser tab
  3. [error] Error #101: UI.Vision RPA is not connected to a browser tab

I’m seeing this error as well. FireFox v131.0.3 / UI.Vision v9.3.3. The error is always at the same line for me:

EDIT: I added a pause before the failed XClick and so far I haven’t seen the error again:

For anyone who sees the error:

Can you please post a test case? We tried several methods (starting the IDE from command line, from bookmark, direct start) but it always works (no #102 error).

My case is an internal site but if it helps it is an attended macro triggered by a bookmark.

Hopefully others can chime in as well so we can narrow it down.

I’m having the same issues it seems. I have been trying to narrow it down but don’t have any info yet so just adding my current setup as it might help narrow down a pattern and I’m unable to share the macro.

Firefox 131.0.3 (64-bit)
Windows Windows 10 Pro
Ui.Vision 9.3.3

I sometime get the Lost contact to website and some times get an extension crash.

If I get the lost website error the macro is on a do loop that’s waiting for one of two waitForElementVisible to proceed but i don’t know if it looses connection before this point yet i need to set up better logging.

once the extension gets into a lost contact state if i stop the macro and run a different part of the macro that opens a website and trys to log in it will still say lost connection when waitForElementVisible is waiting for login and password text boxes.

I also thought it was some sort of memory issues as when i run my macros they progressively get slower and stay like that even when i stop the macro

it don’t take long for both these issues to appear 20min more or less

only way to fix both issues is close the extension only and start it again.

My macro is started via the ide runs in nodisplay and has very small timeout delays 0.1 in loops waiting for buttons to be visible on screen then click them as well as executeScript_Sandbox with simple js scrips that are checking the time and if time is x do this else if Y do this.


Is there a way to pause the macro as soon as the first error #102 happens to help narrow down the bug without changing ignore error true/false? i use both in different locations and will be a pain to restructure the macro.

One possible workaround we found while testing for Error 102 and 230:

  • store | 1 | !timeout_pageload ← Do not wait for a “page loaded” signal from the browser! So now Ui.Vision starts a page load and then moves on to the next command.
  • store | true | !errorignore ← ignore the related timeout error message
  • OPEN | https://your_tricky_website.com
  • store | false| !errorignore
  • XClick or XClickText ← Use visual automation for the tricky and/or slow loading part or the web app.