I have two Windows machines with the agent installed, each with one iPhone plugged in directly via USB. The devices appear and can be controlled via app.testproject.io, but I keep running into the following error whenever I run a coded test locally:
io.testproject.sdk.internal.exceptions.AgentConnectException: Could not complete the request to start a new session. Another program such as an antivirus/firewall seems to be interfering with the connection.
On machine A, this has been happening from the very beginning, with every version of the agent that has come out since then (2.2.0 to 2.3.1). On machine B, it was working perfectly fine for several days until yesterday when this started happening there too. The only change yesterday was updating the agent from 2.3.0 to 2.3.1.
Get-Process -Id (Get-NetTCPConnection -LocalPort 8585).OwningProcess in PowerShell reveals nothing else is using the same port as the agent. I also tried changing the port the agent uses, just in case, with no success.
As a troubleshooting step, I completely uninstalled everything. The agent, my IDE, the Apple tools, everything. I rebooted the computer and the iPhone, and then reinstalled everything. The issue still persists.
In addition, occasionally when I click “Run” on my local tests, the agent will restart itself. I’m not sure if this is related or not, but I thought it worth mentioning.
I’d appreciate any help I can get with this, as I’m kind of at a loss for what to do. I’ve been spinning my wheels on this for two days.