API errors
This section lists potential errors that you might encounter when using the Veracode APIs, API wrappers, or Veracode products that use the APIs and provides recommended actions for resolving them.
This isn't a complete list of all possible errors.
Any API or wrapper errors
Access Denied
Error code: 401
Recommended actions
- Review the recommended actions for Authentication errors.
- Ensure your user account has the required API user roles assigned by your Veracode administrator.
The scan stopped after prescan
Recommended actions
- Call
beginscan.doand review the returned status code. The status code message explains why the scan didn't start. - Review the response code, resolve any issues, and restart the scan.
Unknown SSL protocol error in connection
Error code: 35
Recommended actions
Review the recommended actions for SSL/TLS errors.
Missing mandatory parameters
Recommended actions
Ensure your call includes all mandatory parameters. To review the parameters for the APIs you're using, see the following sections.
Can't connect to Veracode through a proxy
Recommended actions
- Review the recommended actions for proxy errors.
- Check your API wrapper proxy configuration.
The report is not ready
Error code: 204
This error occurs when you download a report before it's generated. It applies to both of these calls:
downloadarcherreport.dobeforegeneratearcherreport.dohas completed.downloadflawreport.dobeforegenerateflawreport.dohas completed.
Recommended actions
Try downloading the report at a later time. After an excessively long time, if the Veracode Platform does not return the report, contact Veracode Technical Support.
App not in state where new builds are allowed
This message indicates that a previous Veracode SAST scan did not succeed for the specific application profile.
Recommended actions
- Sign in to the Veracode Platform.
- To determine whether the previous scan completed successfully, review the current scans for the affected application profile. A previous scan might still be in progress.
- If a previous scan is still running due to an error, select Delete. Then, start a new scan request.
Scan won't start
Unable to start a scan
Module list must contain only top-level module ids for the scan
Recommended actions
- Ensure the
includeparameter is applied only to the intended top-level modules for scanning, and not to unintended dependency modules with similar names. - To check for top-level modules and see which modules are available for selection from the API, run
getprescanresults.do. Resource URL:https://analysiscenter.veracode.com/api/5.0/getprescanresults.do. - The
getprescanresults.docall returns theprescanresultsXML document, which you can check for each module. To identify top-level modules, look foris_dependency="false", and for non-selectable dependencies, look foris_dependency="true".
Archer API errors
Invalid IP address range
Recommended actions
- Ensure the required IP addresses and domains for your Veracode account are on your organization's allowlist.
- Ensure that you are attempting to connect from an IP address that is allowed by the IP address restrictions for your user account.
Invalid login type
Recommended actions
Ensure you're providing credentials for an API class login with the Archer API role.
Invalid or null token
A user account is limited to five active tokens for each Archer report download. Only the last five generated tokens are valid. All tokens expire after 30 days whether they are used or not.
Error code: 403
Recommended actions
- To generate a new token, call
generatearcherreport.do. - Retrieve the new UUID token from the returned XML report. Because you can only have five active tokens, this new token replaces the oldest active token, and the old token expires immediately.
Incorrect date format
Recommended actions
Ensure the date format for the from_date and to_date fields is dd-mm-yyyy.
The results file is too large
When attempting to fetch the Archer feed for a large number of application profiles at the same time, the Veracode Platform might return HTTP status code 500.
Recommended actions
- To limit the scope of the included data, fetch the data using the optional arguments for the Archer API. For example, use the
scan_typeand date range (from_dateandto_date) parameters. - To pull data on a scheduled basis, use one of the following values for the
periodargument:yesterday,last_week, orlast_month.
Alternatively, you can use the asynchronous calls generatearcherreport.do and downloadarcherreport.do.
Results API error
Slow response from getappbuilds.do
Recommended actions
- To generate a list of all application profiles, try calling
getapplist.do. - To generate a list of all builds for an application profile, try calling
getbuildlist.do. - Use
getappinfo.doandgetbuildinfo.doto retrieve the information about specific application profiles and builds.
Upload API errors
Check scan status
Recommended actions
To check the status of prescan results or a successfully completed scan with the Upload API, call getprescanresults.do.
Incomplete scan due to non-fatal errors
Recommended actions
To ensure the scan completes even though there are non-fatal errors, such as unsupported frameworks, include the scan_all_top_level_modules parameter in your call to beginscan.do.
Fatal error blocks SAST scan after prescan
Recommended actions
- Sign in to the Veracode Platform.
- To identify modules with fatal errors, review the prescan results before the next static analysis starts.
- Resolve the errors.
- Optionally, if you do not want to resolve the errors, update your uploaded files and remove any modules with errors.
- Start the analysis manually.
If you haven't added or deleted any modules since the last analysis that contained the fatal errors, the next automated analysis uses the same selected modules.
Java API wrapper error
Requested array size exceeds VM limit
This error indicates that the Java API wrapper encountered a Java Virtual Machine (JVM) array-size limit while processing an archive.
Recommended actions
Check the content and size of the files or archives you are uploading to verify you are using the correct files.