Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange API behavior on add server via UI #4792

Closed
cheluskin opened this issue Jun 14, 2020 · 1 comment · Fixed by #4747
Closed

Strange API behavior on add server via UI #4792

cheluskin opened this issue Jun 14, 2020 · 1 comment · Fixed by #4747
Labels
bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Portal v1 related to Traffic Portal version 1

Comments

@cheluskin
Copy link

cheluskin commented Jun 14, 2020

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

@ocket8888
Copy link
Contributor

This is fixed by #4747

@ocket8888 ocket8888 added bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Portal v1 related to Traffic Portal version 1 labels Jun 14, 2020
@ocket8888 ocket8888 mentioned this issue Jun 15, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Portal v1 related to Traffic Portal version 1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants