Skip to content

400 Bad Request with valid extractedValue #25

@clarkritchie

Description

@clarkritchie

Hello! I am creating synthetic tests based off of known-good manifests of existing synthetic tests.

My workflow is to import an existing test using managementPolicies: ["Observe"], and then essentially copy the YAML to a new manifest and apply it. This workflow has worked great for monitors, but with synthetic tests I am running into this error:

                "message": "apply failed: error creating synthetics API test from https://api.datadoghq.com/api/v1/synthetics/tests/api: 400 Bad Request: {\"errors\":[\"'extractedValues' value '{'field': 'location', 'name': 'LOCATION_FROM_CALL_1', 'parser': {'type': 'raw', 'value': ''}, 'secure': False, 'type': 'http_header'}' is invalid\"]}: ",

In this case, the corresponding YAML is:

        extractedValue:
          - field: location
            name: LOCATION_FROM_CALL_1
            parser:
              - type: raw
            secure: false
            type: http_header

...which is valid, and I can't figure out why this is would be returning a 400.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions