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

Error to generate Allure report trying to use XRAY integration #2078

Open
Rogatto opened this issue Aug 14, 2023 · 2 comments
Open

Error to generate Allure report trying to use XRAY integration #2078

Rogatto opened this issue Aug 14, 2023 · 2 comments

Comments

@Rogatto
Copy link

Rogatto commented Aug 14, 2023

Describe the bug
When trying to generate allure report using Xray enabled there is an error thrown:

I'm using these Allure libraries:

"allure-decorators": "^2.4.0",
"allure-js-commons": "^2.4.0",
"allure-mocha": "^2.4.0"

Allure command-line version:
2.23.1

allure generate allure-results

Exception in thread "main" io.qameta.allure.jira.retrofit.ServiceException: Could not get request body
        at io.qameta.allure.jira.retrofit.DefaultCallAdapterFactory$InstanceCallAdapter.adapt(DefaultCallAdapterFactory.java:113)
        at retrofit2.HttpServiceMethod$CallAdapted.adapt(HttpServiceMethod.java:165)
        at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
        at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
        at jdk.proxy3/jdk.proxy3.$Proxy20.getTestRunsForTestExecution(Unknown Source)
        at io.qameta.allure.xray.XrayTestRunExportPlugin.getTestRunsInTestExecution(XrayTestRunExportPlugin.java:225)
        at io.qameta.allure.xray.XrayTestRunExportPlugin.lambda$updateTestRunStatuses$1(XrayTestRunExportPlugin.java:106)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
        at io.qameta.allure.xray.XrayTestRunExportPlugin.updateTestRunStatuses(XrayTestRunExportPlugin.java:108)
        at io.qameta.allure.xray.XrayTestRunExportPlugin.aggregate(XrayTestRunExportPlugin.java:97)
        at io.qameta.allure.ReportGenerator.aggregate(ReportGenerator.java:53)
        at io.qameta.allure.ReportGenerator.generate(ReportGenerator.java:70)
        at io.qameta.allure.ReportGenerator.generate(ReportGenerator.java:58)
        at io.qameta.allure.Commands.generate(Commands.java:103)
        at io.qameta.allure.CommandLine.run(CommandLine.java:160)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at io.qameta.allure.CommandLine.main(CommandLine.java:92)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 2]
        at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2477)
        at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:750)
        at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:674)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:2085)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:808)
        at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:357)
        at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2095)
        at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1513)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:33)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:23)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
        at io.qameta.allure.jira.retrofit.DefaultCallAdapterFactory$InstanceCallAdapter.adapt(DefaultCallAdapterFactory.java:111)
        ... 22 more
``

@Rogatto Rogatto changed the title Error to generate Allure report and using XRAY integration Error to generate Allure report trying to use XRAY integration Aug 16, 2023
@baev baev transferred this issue from allure-framework/allure-js Aug 17, 2023
@Maithree113
Copy link

Even I am facing the same issue, Wanted to know if it is fixed or is there a workaround for the same.

@dale-satvu
Copy link

I'm also experiencing an error here. Setting the appropriate vars and running allure generate test-results --clean gives the below:

	at java.base/java.util.ArrayList.addAll(ArrayList.java:752)
	at io.qameta.allure.xray.XrayTestRunExportPlugin.getTestRunsInTestExecution(XrayTestRunExportPlugin.java:227)
	at io.qameta.allure.xray.XrayTestRunExportPlugin.lambda$updateTestRunStatuses$1(XrayTestRunExportPlugin.java:107)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at io.qameta.allure.xray.XrayTestRunExportPlugin.updateTestRunStatuses(XrayTestRunExportPlugin.java:109)
	at io.qameta.allure.xray.XrayTestRunExportPlugin.aggregate(XrayTestRunExportPlugin.java:97)
	at io.qameta.allure.ReportGenerator.aggregate(ReportGenerator.java:63)
	at io.qameta.allure.ReportGenerator.generate(ReportGenerator.java:121)
	at io.qameta.allure.ReportGenerator.generate(ReportGenerator.java:103)
	at io.qameta.allure.Commands.generate(Commands.java:116)
	at io.qameta.allure.CommandLine.run(CommandLine.java:160)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at io.qameta.allure.CommandLine.main(CommandLine.java:92)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants