-
Notifications
You must be signed in to change notification settings - Fork 0
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 LaunchLoggingCallback : [26] ReportPortal execution error with logger-java-rest-assured #19
Comments
@a6pakaga6pa Could you get the exact response? I think this might be related to server settings. |
@HardNorth I'm not sure what exact response you've meant. Alright, here are logs from cmd before the tests itself. In the end you can see two exceptions that I've mentioned above: `Running with gitlab-runner 14.9.0 (d1f69508)
|
@a6pakaga6pa Well, actually there is no any connection between rest-assured logger and your 401 error. I can only guess, that the logger requires And you are using rather old version of TestNG agent, I would recommend an update. |
Abandoned |
Describe the bug
We try to use logger-java-rest-assured library to log request/response logs to Report Portal, that runs in AWS. So, we need for logs to be present after pipelines run in GitLab. Without that library all works good, we have connection and reports we need, we see logs, but, obviously, not Rest-Assured requests/responses.
When we add logger-java-rest-assured, locally, all works fine. I mean, that we have connection with Report Portal instance, we have reports, logs (with all Rest-Assured request/response) and even log filter is working.
But, if we run same build on the pipelines, we got this:
14:06:35.721 [rp-io-1] ERROR LaunchLoggingCallback : [26] ReportPortal execution error [223](https://gitlab.****/dev/services/****/-/jobs/3497256#L223) retrofit2.adapter.rxjava2.HttpException: HTTP 401 [224](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L224) at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57) [225](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L225) at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38) [226](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L226) at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48) [227](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L227) at io.reactivex.Observable.subscribe(Observable.java:12267) [228](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L228) at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35) [229](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L229) at io.reactivex.Observable.subscribe(Observable.java:12267) [230](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L230) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96) [231](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L231) at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38) [232](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L232) at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26) [233](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L233) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [234](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L234) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [235](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L235) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [236](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L236) at java.base/java.lang.Thread.run(Thread.java:829) [237](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L237) 14:06:35.723 [rp-io-1] ERROR LaunchLoggingCallback : [26] ReportPortal execution error [238](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L238) retrofit2.adapter.rxjava2.HttpException: HTTP 401 [239](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L239) at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57) [240](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L240) at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38) [241](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L241) at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48) [242](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L242) at io.reactivex.Observable.subscribe(Observable.java:12267) [243](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L243) at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35) [244](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L244) at io.reactivex.Observable.subscribe(Observable.java:12267) [245](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L245) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96) [246](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L246) at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38) [247](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L247) at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26) [248](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L248) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [249](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L249) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [250](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L250) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [251](https://gitlab.****.systems/dev/services/****/-/jobs/3497256#L251) at java.base/java.lang.Thread.run(Thread.java:829)
As a result - no connection to Report Portal. We can't find out the reason of that 401 error and how we can fix it.
Here are what related dependencies we have in build.gradle:
here is a listener in regression.xml:
Here is a webhook:
I've tried to "play" with different versions - same result. Locally all is good. On the pipeline job - 401 Response, no connection.
Could you please help to clarify why we got that error? If you need other details, please ask
The text was updated successfully, but these errors were encountered: