Skip to main content

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

The scan stopped after prescan​

Recommended actions

  1. Call beginscan.do and review the returned status code. The status code message explains why the scan didn't start.
  2. 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

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:

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

  1. Sign in to the Veracode Platform.
  2. 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.
  3. 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 include parameter 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.do call returns the prescanresults XML document, which you can check for each module. To identify top-level modules, look for is_dependency="false", and for non-selectable dependencies, look for is_dependency="true".

Archer API errors​

Invalid IP address range​

Recommended actions

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

  1. To generate a new token, call generatearcherreport.do.
  2. 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_type and date range (from_date and to_date) parameters.
  • To pull data on a scheduled basis, use one of the following values for the period argument: yesterday, last_week, or last_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.do and getbuildinfo.do to 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

  1. Sign in to the Veracode Platform.
  2. To identify modules with fatal errors, review the prescan results before the next static analysis starts.
  3. Resolve the errors.
  4. Optionally, if you do not want to resolve the errors, update your uploaded files and remove any modules with errors.
  5. 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.