SGhimire112916 (Community Member) asked a question.

Getting error "IllegalArgumentException, Invalid API ID"

I am getting below error at the end of the veracode scan. Though i got the error, the scan shows complete. Does anyone know what is missing here -

 

Error -

[19.07.30 08:57:44] The status of the new build is "Scan In Process".

[19.07.30 08:57:44] Requesting build info again in 2 minutes.

[19.07.30 08:59:44]

[19.07.30 08:59:44] The status of the new build is "Results Ready".

[19.07.30 08:59:45]

[19.07.30 08:59:45] The scan finished successfully.

 

Ran into problem when generating scan results in Jenkins. Error: [IllegalArgumentException, Invalid API ID.]

java.lang.IllegalArgumentException: Invalid API ID.

at com.veracode.apiwrapper.AbstractAPIWrapper.setUpApiCredentials(AbstractAPIWrapper.java:190)

at com.veracode.apiwrapper.wrappers.UploadAPIWrapper.setUpApiCredentials(UploadAPIWrapper.java:91)

at com.veracode.jenkins.plugin.utils.WrapperUtil.setupCredential(WrapperUtil.java:30)

at com.veracode.jenkins.plugin.utils.WrapperUtil.getBuildInfo(WrapperUtil.java:71)

at com.veracode.jenkins.plugin.VeracodePipelineRecorder.getScanResults(VeracodePipelineRecorder.java:591)

at com.veracode.jenkins.plugin.VeracodePipelineRecorder.runScanFromRemote(VeracodePipelineRecorder.java:536)

at com.veracode.jenkins.plugin.VeracodePipelineRecorder.perform(VeracodePipelineRecorder.java:227)

at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)

at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)

at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)

at hudson.security.ACL.impersonate(ACL.java:290)

at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

[Pipeline] }

[Pipeline] // script

[Pipeline] }

[Pipeline] // withEnv

[Pipeline] }

[Pipeline] // stage

[Pipeline] }

[Pipeline] // withEnv

[Pipeline] }

[Pipeline] // withEnv

[Pipeline] }

[Pipeline] // node

[Pipeline] End of Pipeline

[OneT] Post of build to Kafka was successful to host: zlp33018.vci.att.com:3904

Finished: SUCCESS

 


  • Kin (Community Member)

    Hi @SGhimire112916 (Community Member)​,

     

    The error message indicates the ID for authenticating with the Veracode Analysis Center is not in the expected format. It is strange since the plugin is able to use the same ID to initiate a scan and checks the scan progress (as shown in the posted log). The only possible cause that I can think of is the ID changed during the course of the execution. So, it might helpful to look at the pipeline script and trace back where the ID value comes from, and see if anything changed at the time of the error.

     

    Hope this helps.

    Thanks

     

    Expand Post

Topics (1)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.