Forum Discussion

Jaya_Kushwaha's avatar
Jaya_Kushwaha
Occasional Visitor
4 months ago

"Internal Server Error" 500 code on using Save and Execute API

I have been getting an "Internal Server Error" (500 code) whenever I'm trying to use the save and execute API ( https://prod-vortexapi.zephyr4jiracloud.com/api/v1/automation/job/saveAndExecute) to upload the test execution reports.

 

Here is an example of my request header and body:

Request Header:

{

accessKey:{{accessKey}}

jwt:{{JWT_Token}}

secretKey:{{secretKey}}

accountID:{{accountId}}

}

 

Request Body:

{

jobName:New Task

jobDescription:New Task Desc

automationFramework:Cucumber

versionName:Unscheduled

cycleName:AtestCycle

createNewCycle:true

appendDateTimeInCycleName:false

folderName:Windows

createNewFolder:false

appendDateTimeInFolderName:false

assigneeUser:{{accountId}}

mandatoryFields:'{\"components\":[{\"label\":\"my component\",\"value\":\"my component\",\"content\":\"my component\"}],{\"reporter\":{\"label\":\"Jaya Kushwaha\",\"name\":\"Jaya Kushwaha\",\"id\":\"{{accountId}}\"}}

automationVia:Upload

projectKey:CC

assigneeDisplayName:Jaya Kushwaha

cycleStartDate:01/11/23

cycleEndDate:01/11/23

}

 

Making this API call would result in the creation of the job on the U.I. but it is neither able to upload the cucumber report nor create the test cycle.