Sohlae (Community Member) asked a question.

Error When Using Httpie

I received this error when I tried to use httpie to invoke the Dynamic Scan API.

 

http --auth-type=veracode_hmac --ignore-stdin POST "https://api.veracode.eu/was/configservice/v1/analyses?run_verification=true&scan_type=API_SCAN" < C:\input.json

usage:

  http -A/--auth-type {basic, digest, bearer, jwt} [METHOD] URL [REQUEST_ITEM ...]

 

error:

  argument --auth-type/-A: invalid choice: 'veracode_hmac' (choose from 'basic', 'bearer', 'digest', 'jwt')

 

for more information:

  run 'http --help' or visit https://httpie.io/docs/cli


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

     

    Are you mapping the veracode API credentials?

     

    Try to "force" export of credentials and run HTTP CLI.

     

    1. Create variables into your Pipeline "VERACODE_ID" and "VERACODE_KEY" and within your script, invoke them like that:
    2. export VERACODE_API_KEY_ID=$(VERACODE_ID)
    3. export VERACODE_API_KEY_SECRET=$(VERACODE_KEY)
    4. And then, run the httpie
    Expand Post
    Selected as Best
  • @Sohlae (Community Member)​ 

     

    Are you mapping the veracode API credentials?

     

    Try to "force" export of credentials and run HTTP CLI.

     

    1. Create variables into your Pipeline "VERACODE_ID" and "VERACODE_KEY" and within your script, invoke them like that:
    2. export VERACODE_API_KEY_ID=$(VERACODE_ID)
    3. export VERACODE_API_KEY_SECRET=$(VERACODE_KEY)
    4. And then, run the httpie
    Expand Post
    Selected as Best

Topics (5)

No articles found
Loading

Ask the Community

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