BTummala399047 (Community Member) asked a question.

Hello,
I'm trying to upload an iOS archive which is about 500mb in size, using veracodejavaapi.jar the upload always fails with the following errors "Error writing request body to server"
"cannot retry due to server authentication, in streaming mode"

command used - " java -jar veracodejavaapi.jar -vid # -vkey # -action uploadfile -appid # -sandboxid # -filepath #"


lucas.ferreira likes this.
  • hello @BTummala399047 (Community Member)​ 

     

    I think that there is a little miskate in your CLI sintax for upload and scan using java-api-wrapper.

     

    1. The action upload and scan needs especific parameters as required and optional
    2. You can review all possible parameters in this table on docs. Link: https://docs.veracode.com/r/r_uploadandscan
    3. As an example, you can upload and scan for a sandbox using something like that:
      1. "java -jar api-wrapper-java.jar -action uploadandscan -vid {Veracode_API_ID} -vkey {Veracode_API_key} -appname myapp_name_profile -createprofile false -sandboxname mysandbox_name -createsandbox true -version {build_version) - -filepath /{project_path}/iOS.archive.zip"
    4. It's very important follow the instructions for compling/packaging you app. Link for iOS apps: https://docs.veracode.com/r/compilation_ios

     

     

    Expand Post

Topics (6)

No articles found
Loading

Ask the Community

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