Gateway issue with DELETE operation, error 400, proto: syntax error
search cancel

Gateway issue with DELETE operation, error 400, proto: syntax error

book

Article ID: 419427

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When our application calls direct url to a third party url it works and when call through gateway it fails with 400 error. 

 Application is doing DELETE with http body: 

DELETE 

Request:

{

    "account": [

        "TestCust5"

    ]

}

Response:

{

    "errors": [

        {

            "code": "",

            "detail": "proto: syntax error (line 1:1): unexpected token ",

            "id": "xxxxxxxxxxxxxxxxxxxxxx",

            "status": "400"

        }

    ]

}

Environment

ssg 11.x. 

Cause

Gateway routing did not transmit the request body as is for the DELETE operation. 

Resolution

Check the Transmit body regardless of request method in the routing properties of the route via http assertion. 

 

 

Attachments

routing.png get_app