Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Strange API behavior on add server via UI #4792

@cheluskin

Description

@cheluskin

requires an interface, although it is specified. Observed in the master version

{
    "data": {
        "alerts": [
            {
                "text": "a server must have at least one interface",
                "level": "error"
            }
        ]
    },
    "status": 400,
    "config": {
        "method": "POST",
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "jsonpCallbackParam": "callback",
        "url": "/api/3.0/servers",
        "data": {
            "updPending": false,
            "tcpPort": 80,
            "httpsPort": 443,
            "ipIsService": true,
            "ip6IsService": false,
            "statusId": 1,
            "hostName": "AMS-2120463",
            "domainName": "am1.myawesomehost.com",
            "cdnId": 2,
            "profileId": 10,
            "cachegroupId": 1,
            "typeId": 12,
            "interfaceName": "eth0",
            "ipAddress": "51.15.3.208",
            "ipNetmask": "51.15.3.0",
            "ipGateway": "51.15.3.1",
            "interfaceMtu": 1500,
            "physLocationId": 1
        },
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "Content-Type": "application/json;charset=utf-8"
        },
        "cached": false,
        "withCredentials": true
    },
    "statusText": "Bad Request",
    "xhrStatus": "complete"
}

downgrade to 4.1 fix issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Portal v1related to Traffic Portal version 1bugsomething isn't working as intendedlow impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions