Skip to content

receptor api returns InvalidJSON error for DesiredLRPUpdateRequest #62

@shalako

Description

@shalako

I'm trying to update the routes field for an LRP.

$ curl receptor.10.244.0.34.xip.io/v1/desired_lrps/scoen-1 -X PUT -d '{"routes":{"tcp-router":[{"external_port":70000,"container_port":6379}]}}'
{"name":"InvalidJSON","message":"EOF"}

I have verified that this is valid JSON.

{  
    "routes":{  
        "tcp-router":[  
            {  
                "external_port":50001,
                "container_port":6379
            }
        ]
    }
}

@amitkgupta suggested something about the payload needs to be escaped; I have not found this documented.

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