Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Issue with RestClient calling Healenium Init Report "/init/report" #274

Open
prakashp1987 opened this issue Jul 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@prakashp1987
Copy link

Describe the bug

Issue 1: Init Report] Error during call. Message: non-positive contentLength: 0

While trying to call SelfHealingDriver.create(delegate). I am getting error as "Init Report] Error during call. Message: non-positive contentLength: 0, Exception: java.lang.IllegalArgumentException: non-positive contentLength: 0". Upon Debugging the issue, I found out that an HTTPPost method is being called without a Request body. We need to pass an empty Json Body to resolve the issue.

Issue 2: Healing Processor Error: java.lang.NoSuchMethodError: 'org.jsoup.nodes.Document org.jsoup.nodes.Document.normalise()' when calling new JsoupHTMLParser().parse(new ByteArrayInputStream(tree.getBytes(StandardCharsets.UTF_8)));

I modified my application UI Locator and during Healing Process, it had thrown me above exception. While debugging I have identified that, it was caused due to version incompatibility on Jsoup, as normalize method is been deprecated and to be removed.

Issue 3: Failed to check class: findAnnotatedInTrace in org.testng.TestRunner

I am using TestNg to execute my test. While Debugging i have found out com.epam.healenium.utils.StackUtils.redundantPackages() method should include "org.testng" along with remaining packages.

How to reproduce the issue

Init Report] Error during call. Message: non-positive contentLength: 0

java.lang.NoSuchMethodError: 'org.jsoup.nodes.Document org.jsoup.nodes.Document.normalise()' when calling new JsoupHTMLParser().parse(new ByteArrayInputStream(tree.getBytes(StandardCharsets.UTF_8)));

Failed to check class: findAnnotatedInTrace in org.testng.TestRunner

Logs appeared during using Healenium

Init Report] Error during call. Message: non-positive contentLength: 0

java.lang.NoSuchMethodError: 'org.jsoup.nodes.Document org.jsoup.nodes.Document.normalise()' when calling new JsoupHTMLParser().parse(new ByteArrayInputStream(tree.getBytes(StandardCharsets.UTF_8)));

Failed to check class: findAnnotatedInTrace in org.testng.TestRunner

Expected behavior

No response

Actual behavior

No response

Healenium Web version

3.5.2

Healenium Backend version

3.4.5

Selenium version

4.21.0

Platform

Java

Properties file

No response

Additional context

No response

@prakashp1987 prakashp1987 added the bug Something isn't working label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants