我将以下字符串发送到 Loggly:
{
ContextInfo: [
{
context.Product.State: Published
},
{
context.Product.SubscriptionRequired: True
},
{
Product.Groups: Microsoft.WindowsAzure.ApiManagement.Proxy.Gateway.Configuration.Models.DeveloperGroup,
Microsoft.WindowsAzure.ApiManagement.Proxy.Gateway.Configuration.Models.DeveloperGroup,
Microsoft.WindowsAzure.ApiManagement.Proxy.Gateway.Configuration.Models.DeveloperGroup
},
{
Request.Body: [
{
"vehicleType": "train",
"maxSpeed": 125,
"avgSpeed": 90,
"speedUnit": "mph"
}
]
},
{
Request.Headers: [
{
Key=Origin,
Value=chrome-extension: //fhbjgbiflinjbdggehcddcbncdddomop
},
{
Key=Ocp-Apim-Subscription-Key,
Value=36ffceb3cc32435d8189817af868413x
},
{
Key=Postman-Token,
Value=00af3c61-f247-86ba-c4f3-aead9db2be8a
}
]
},
{
context.Request.Method: POST
}
]
}
出于某种原因,Loggly 会截断 Request.Body 属性的右括号之前的所有内容。我尝试删除引号并将“:”替换为“=”。知道为什么会发生此错误或如何解决吗?