Another debugger is already attached

Hi,

I’m using the Ui.Vision CLI with JavaScript (uiv.*) macros, and sometimes I get the following error:

Status=Error: Another debugger is already attached to the tab with id: 1493712742.

The issue is intermittent. If I run the same macro again after it fails, it usually works normally and the error does not happen again.

I’m using the following CLI parameters:

storage=xfile
loadmacrotree=0
closeRPA=0
closeBrowser=0
continueInLastUsedTab=1
nodisplay=1

In the macro where this issue happens, uiv.page.fill(...) is used three times.

I also occasionally get these errors:

"file":"content_script.js","line":1,"message":"fail to inject (ha)"

Status=Error: Error #102: Lost contact to website — no answer to 'PANEL_CALL_PLAY_TAB / HACK_ALERT' after 4s

I noticed that Error #102 happens more often when the page is making many network requests. I tried increasing TIMEOUT_WAIT, but the error still happens. I also use uiv.$(...) to wait for the page/elements to load.

Another error that happens sometimes is:

Status=Error: Could not establish connection to tab 1495540378. Receiving end does not exist.

This error happens right when the macro starts, on the first opening. If I run the macro again, it usually works normally.

My environment:

  • Ui.Vision RPA: 10.2.x

  • Python: 3.12

  • JavaScript (uiv.*) macros

  • Macros are started through the Ui.Vision CLI

Did you try todays 10.0.276 yet? That fixed it for me.