-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
enhancementNew feature or enhancementNew feature or enhancementplannedSolution is being worked onSolution is being worked on
Description
http: error: Request body (from stdin or a file) and request data (key=value) cannot be mixed.
This error is rather cryptic. I'm writing a shell script to interact with a rest API, and I'm doing this:
http --output subnet --pretty format --form post "${URLHOST}subnets" "cidr=${cidr}" "name=${name}" "description=${name}" "availabilityZoneId=${az}" "networkId=${VPCid}" "$ACCESSKEY" "$SECRETKEY" "$ACCOUNTID" "_providerId=aws" "_regionId=${REGION}"
Which produces (when preceded by 'echo' a command that works perfectly well. However, this version gives the error in the subject.
Am I being stupid, or is this something else?
FYI: The result of the above is as followed (sanitized slightly)
http --output subnet --pretty format --form post https://test.grid.domain.com/subnets cidr=10.124.33.128/25 name=Load_balancers description=Load_balancers availabilityZoneId=us-east-1c networkId=vpc-31433e7e x-gridauth-accesskey:DOYOUNEEDTOKNOW x-gridauth-secretaccesskey:WHATISWITHALLTHEQUESTIONS x-gridauth-accountid:11223344556677 _providerId=aws _regionId=us-east-1
rcorre, traut, shafr, NightMachinery and Z-4-Z
Metadata
Metadata
Assignees
Labels
enhancementNew feature or enhancementNew feature or enhancementplannedSolution is being worked onSolution is being worked on