Upload failed with the error ERROR console: (5) Command Line result upload error.
However, the logs are full of the below warnings:
- UTF-8 "\xE7" does not map to Unicode at perl/FileList.pm line XX
- [Lib::GeneratedCodeException] not analyzed because it contains generated code
Details
From the sample logs it can be seen that the files did not get uploaded as there were no results.
INFO perl: out: --> UTF8_flag_ON (41 70)
INFO highlight: Deleting empty scan file Ksh-202224_1005.csv
ERROR highlight: No header can be extracted to patch framework files
INFO highlight: Ksh-progession is not sent
The the issue is due to encoding of the code being analyzed. Every file in the analysis should have an encoding readable by Highlight. Please check and modify the file encoding for the analysis to proceed. UTF-8 should generally work.
NB : any_to_utf8.py is a tool that is used in CAST AIP to mass convert files to UTF-8 format. Please refer doc Tools - any_to_utf8 to download the python script any_to_utf8.py
Ticket
36849
.
Related Articles
CAST HIGHLIGHT - CLI - Error Codes
CAST HIGHLIGHT - CLI - ERROR: Failed to fetch company with id when using --basicAuth
CAST HIGHLIGHT - CLI - Scan is failing with error code 5
Highlight Automated Code Scan (Command Line)
Comments