anteon icon indicating copy to clipboard operation
anteon copied to clipboard

Error: "cannot unmarshal object into Go struct field jsonReaderAlias.steps of type string"

Open douglasg14b opened this issue 1 year ago • 2 comments

Might be because of a mistake in the config? Either way the error should probably indicate what the problem is as opposed to be unhanded.

Command: ddosify -config loadTestConfig.json

Config:

{
    "iteration_count": 3000,
    "debug" : false,
    "load_type": "linear",
    "duration": 30,
    "steps": [
        {
            "id": 1,
            "url": "[redacted]",
            "method": "POST",
            "payload": {
                "eventData": {
                  "type": "action",
                  "name": "ButtonClick_SendVerificationButton",
                  "buttonName": "back"
                },
                "context": {
                  "identities": { "deviceId": "abcd-1234", "customerId": "abcd-1234" },
                  "meta": {
                    "isTest": true,
                    "artificial": true
                  }
                }
              },
            "timeout": 2
        }
    ]
}

douglasg14b avatar Feb 02 '23 18:02 douglasg14b