Invictum / serenity-reportportal-integration

Serenity TAF integration with Report Portal
Apache License 2.0
20 stars 19 forks source link

Incorrect Request. [Field 'attributes[].value' should have size from '1' to '128'.] #145

Closed plokeshwar closed 9 months ago

plokeshwar commented 2 years ago

Suddenly, I started getting this error. Any help would be greatly appreciated.

19:30:16.058 [rp-io-63] ERROR c.e.r.utils.SubscriptionUtils - [109] ReportPortal Finish test item execution error com.epam.reportportal.exception.ReportPortalException: Report Portal returned error Status code: 400 Status message: Error Message: Incorrect Request. [Field 'attributes[].value' should have size from '1' to '128'.] Error Type: INCORRECT_REQUEST

    at com.epam.reportportal.service.ReportPortalErrorHandler.handleError(ReportPortalErrorHandler.java:85) ~[client-java-5.0.11.jar:na]
    at com.epam.reportportal.service.ReportPortalErrorHandler.handle(ReportPortalErrorHandler.java:61) ~[client-java-5.0.11.jar:na]
    at com.epam.reportportal.restendpoint.http.HttpClientRestEndpoint$1.subscribe(HttpClientRestEndpoint.java:526) ~[client-java-5.0.11.jar:na]
    at io.reactivex.i
bvpadmanaban commented 2 years ago

what value are you passing in rp.attributes in report portal properties file?

v1-wizard commented 2 years ago

You should go to your Report Portal instance and read logs from API-gateway and find requests with data that produce this error. Look like you start sending data with the size of more than 128 chars in attributes. This is not a problem with Report Portal or serenity-reportportal-integration. This is a sudden limitation and you should fix your data on tests execution.

v1-wizard commented 2 years ago

You could also try this option in your code: ReportIntegrationConfig.get().truncateNames(true)

plokeshwar commented 2 years ago

what value are you passing in rp.attributes in report portal properties file?

I am not passing any attributes from reportportal.properties.

plokeshwar commented 2 years ago

You could also try this option in your code: ReportIntegrationConfig.get().truncateNames(true)

Let me try this.

plokeshwar commented 2 years ago

@Invictum this looks to be occurring for Scenario Outlines with long scenario descriptions.

grey-rain commented 10 months ago

@plokeshwar I know it is been a while, but I cannot replicate the issue with the latest version 1.6.0. More likely it was ReportPortal limitation which is lifted now...

grey-rain commented 9 months ago

abandoned.