Skip to main content
All CollectionsTroubleshootingTest Results
"Can not deserialise instance of java.io.File out of START_ARRAY token" When Publishing Test Results to Jira Server
"Can not deserialise instance of java.io.File out of START_ARRAY token" When Publishing Test Results to Jira Server

Getting an error when attempting to publish test results to Jira Server

Alan Parkinson avatar
Written by Alan Parkinson
Updated over 3 years ago

If you are seeing the error "Can not deserialize instance of java.io.File out of START_ARRAY token" then you need to upload the report as a raw file and not as a JSON request.

If you are using curl, follow this example:

curl -L -X PUT https://jira.example.com/rest/behavepro/1.0/bdd 
-H "X-API-KEY: $BEHAVE_PRO_API_KEY" \
-H "X-COMMIT-ID: $GIT_COMMIT" \
--data-binary @cucumber.json


If you are using Windows and do not have access to curl but have access to Powershell, you can send the request as shown below:

Invoke-WebRequest https://jira.example.com/rest/behavepro/1.0/bdd ` 
-Method PUT
-Headers @{'X-COMMIT-ID'='your_commit_id';'X-API-KEY'='your_api_key'} -Infile cucumber.json


If you are using any other tool to upload your report, try un-setting the "Content-Type" header in your request, or setting the header to value of "application/octet-stream".

To learn more about Publishing Cucumber Test results to Jira please read this article.


Did this answer your question?