healenium / healenium-web

Self-healing library for Selenium Web-based tests
Apache License 2.0
169 stars 40 forks source link

Failed to make response of 'getLastHealingData' request. java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:7878[Need support]: #170

Closed priyanka748 closed 2 years ago

priyanka748 commented 2 years ago

Describe the problem

Session ID: 6f6bf4b39c2c6a256baa86fa858de247 Trying to heal... [main] WARN com.epam.healenium.client.RestClient - Failed to make response of 'getLastHealingData' request. java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:7878

Healenium Web version

<version>3.2.1</version>

Healenium Backend version

hlm-backend:3.1.5

Selenium version

4.1.1

Platform

Java

Properties file

recovery-tries = 3 heal-enabled = true serverHost = 5432 serverPort = 7878 imitatePort = 8000 score-cap = 0.5

Logs appeared during using Healenium

Trying to heal...
[main] WARN com.epam.healenium.client.RestClient - Failed to make response of 'getLastHealingData' request. 
java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:7878

Exception in thread "main" org.openqa.selenium.NoSuchElementException: Failed to find element using By.name: q

Additional context

No response

ElenaStepuro commented 2 years ago

Hello @priyanka748 , healenium-web 3.2.1 not compatible with back 3.1.5. Please, use healenium-back version 3.2.0

priyanka748 commented 2 years ago
Capture

serverHost = 5432 serverPort = 7878 imitatePort = 8000

is that correct?? or I have to change the host

ElenaStepuro commented 2 years ago

@priyanka748 serverPort = 7878 and imitatePort = 8000 are correct! Please, change serverHost to yours. If you're running tests locally then serverHost = localhost

priyanka748 commented 2 years ago

WARN com.epam.healenium.client.RestClient - Failed to make response of 'selectorsRequest' request.java.io.IOException: unexpected end of stream on http://localhost:7878/... still getting this

priyanka748 commented 2 years ago
cap

is this correct?

ElenaStepuro commented 2 years ago

@priyanka748 please, change healenium/db/sql folder structure. So, it should be like this: image

So, you can just copy-paste from example: https://github.com/healenium/healenium-example-maven And instead of infrayou'll have healenium/db/sql

ElenaStepuro commented 2 years ago

@priyanka748 this is Healenium logs) like a notification that your locator hasn't been found and Healenium trying to find a new one) [main] WARN com.epam.healenium.processor.FindElementProcessor - Failed to find an element using locator By.name: q

priyanka748 commented 2 years ago

Working as expected

bjha1 commented 1 year ago

Hi Team, I am getting an error - "Trying to heal... [main] WARN com.epam.healenium.client.RestClient - Failed to make response of 'getLastHealingData' request. java.io.IOException: unexpected end of stream on http://localhost:7878/..."

Screenshot 2023-01-14 at 5 15 01 AM
bjha1 commented 1 year ago

Hi Team, I am getting an error - "Trying to heal... [main] WARN com.epam.healenium.client.RestClient - Failed to make response of 'getLastHealingData' request. java.io.IOException: unexpected end of stream on http://localhost:7878/..." Screenshot 2023-01-14 at 5 15 01 AM <img width="307" alt="Screenshot 2023-01-15 at 4 42 33 AM"

Screenshot 2023-01-15 at 4 42 51 AM

src="https://user-images.githubusercontent.com/118807278/212533800-19433ff0-7bdf-4de4-a917-dc95c4ac6d3a.png">

Please help on this I have followed every steps of hlm backend even though its not working