We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following code to update a finished launch:
// version = "@reportportal/client-javascript": "^5.0.13" import RPClient from "@reportportal/client-javascript"; const rpClient = new RPClient(RPconfig); const launchObj = await rpClient.startLaunch({}); const launchData = await launchObj.promise; rpLaunchId = launchData.id; console.log(`ReportPortal launch id: ${rpLaunchId}`); const launchFinishObj = rpClient.finishLaunch(launchObj.tempId); const launchFinishData = await launchFinishObj.promise; const update = await rpClient.updateLaunch(launchObj.tempId, { attributes: [ { key: "Build", value: process.env.BUILD_NUMBER, }, ], }); await update.promise;
but the updateLaunch throws an error:
updateLaunch
Request failed with status code 400: {"timestamp":1693411134135,"status":400,"error":"Bad Request","path":"/v1/{project}/launch/{launchId}/update"}
What am I doing wrong in the request body of updateLaunch?
The text was updated successfully, but these errors were encountered:
Hi @quldude ! Everything looks fine, cannot reproduce your issue. Please try with the latest Report Portal version.
Sorry, something went wrong.
Hi @quldude ! Is this issue still actual for you?
Hi @quldude ! Did using a fresh version of RP solve the problem?
No branches or pull requests
I have the following code to update a finished launch:
but the
updateLaunch
throws an error:What am I doing wrong in the request body of updateLaunch?
The text was updated successfully, but these errors were encountered: