You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a Typescript StencilJS and Storybook project. They use Jest under the hood for testing. I have added the report portal agent to the Jest config as a reporter. This is just a POC at the moment, so have a single very basic test.
When I run locally I can see my test pass and the result appears in Report Portal, however when the same is done in our Jenkins CI pipeline, we get this strange 403 error:
02:02:52 @XXXXXXXX: [TEST] Error: Request failed with status code 403
02:02:52 @XXXXXXXX: [TEST] URL: http://reportportal.XXXX.XXXXX.com:8080/api/v1/MFE/launch
02:02:52 @XXXXXXXX: [TEST] method: POST
02:02:52 @XXXXXXXX: [TEST] at /home/jenkins/workspace/workspace/XXXXX/node_modules/@reportportal/client-javascript/lib/rest.js:43:15
02:02:52 @XXXXXXXX: [TEST] at Object.dynatraceOnServiceExecutionIndicator [as doInvoke] (/opt/dynatrace/XXX/agent/bin/XXX/any/nodejs/nodejsagent.js:4033:22)
02:02:52 @XXXXXXXX: [TEST] at /opt/dynatrace/XXX/agent/bin/XXX/any/nodejs/nodejsagent.js:9094:59
02:02:52 @XXXXXXXX: [TEST] at u.runInContext (/opt/dynatrace/XXX/agent/bin/XXX/any/nodejs/nodejsagent.js:2351:24)
02:02:52 @XXXXXXXX: [TEST] at /opt/dynatrace/XXX/agent/bin/XXX/any/nodejs/nodejsagent.js:9094:35
Have tested the Report Portal health check endpoint in the same pipeline using a curl command and that comes back positive, so doesn't seem a proxy issue. Additionally this is a 403 which implies there wasn't an issue with authentication.
I am working with Pete and can confirm that within the same jenkins executor that is executing the test, we can successfully handcraft the same request and are able to create a launch.
Therefore we can rule out any issues around firewalls, etc
The RP instance is HTTP rather than HTTPS...could that be of interest?
Hi, I have a Typescript StencilJS and Storybook project. They use Jest under the hood for testing. I have added the report portal agent to the Jest config as a reporter. This is just a POC at the moment, so have a single very basic test.
When I run locally I can see my test pass and the result appears in Report Portal, however when the same is done in our Jenkins CI pipeline, we get this strange 403 error:
Have tested the Report Portal health check endpoint in the same pipeline using a curl command and that comes back positive, so doesn't seem a proxy issue. Additionally this is a 403 which implies there wasn't an issue with authentication.
Just wondering if this indicates an obvious solution that I'm just not getting
The text was updated successfully, but these errors were encountered: