AnsweredAssumed Answered

open API - list a policy call failed in visitor Prioritization

Question asked by Praveen Polishetty on Aug 25, 2015
Latest reply on Aug 25, 2015 by Praveen Polishetty

getting "Missing query= in the POST body" error. Please check the request & response.

 

 

Request:

 

 

10:36:20  wire 72 -  >> "POST /config-visitor-prioritization-data/api/v1/policymanager?command=read HTTP/1.1[\r][\n]"

10:36:20  wire 72 -  >> "Accept: application/json[\r][\n]"

10:36:20  wire 72 -  >> "Accept-Encoding: gzip[\r][\n]"

10:36:20  wire 72 -  >> "Authorization: XXXXXXXXXXXXXXXXXXXX

10:36:20  wire 72 -  >> "Content-Type: application/json[\r][\n]"

10:36:20  wire 72 -  >> "User-Agent: Google-HTTP-Java-Client/1.19.0 (gzip)[\r][\n]"

10:36:20  wire 72 -  >> "host: akab-xxxxx-a3a6ytqalayg5ula.luna.akamaiapis.net[\r][\n]"

10:36:20  wire 72 -  >> "Content-Length: 70[\r][\n]"

10:36:20  wire 72 -  >> "Connection: Keep-Alive[\r][\n]"

10:36:20  wire 72 -  >> "[\r][\n]"

10:36:20  headers 272 - >> POST /config-visitor-prioritization-data/api/v1/policymanager?command=read HTTP/1.1

10:36:20  headers 275 - >> Accept: application/json

10:36:20  headers 275 - >> Accept-Encoding: gzip

10:36:20  headers 275 - >> Authorization: XXXXXXXXXXXXXXXXXXXXXX

10:36:20  headers 275 - >> Content-Type: application/json

10:36:20  headers 275 - >> User-Agent: Google-HTTP-Java-Client/1.19.0 (gzip)

10:36:20  headers 275 - >> host: akab-******-a3a6ytqalayg5ula.luna.akamaiapis.net

10:36:20  headers 275 - >> Content-Length: 70

10:36:20  headers 275 - >> Connection: Keep-Alive

10:36:20  wire 86 -  >> "query={"policyManagerRequest":{"command":"read","read":{"id":"44138"}}}"

 

 

 

 

Response:

 

 

10:36:21  wire 72 -  << "HTTP/1.1 400 Bad Request[\r][\n]"

10:36:21  wire 72 -  << "Server: Apache-Coyote/1.1[\r][\n]"

10:36:21  wire 72 -  << "X-Content-Type-Options: nosniff[\r][\n]"

10:36:21  wire 72 -  << "Content-Length: 99[\r][\n]"

10:36:21  wire 72 -  << "Content-Type: application/problem+json[\r][\n]"

10:36:21  wire 72 -  << "Date: Tue, 25 Aug 2015 17:36:21 GMT[\r][\n]"

10:36:21  wire 72 -  << "Connection: close[\r][\n]"

10:36:21  wire 72 -  << "[\r][\n]"

10:36:21  DefaultClientConnection 253 - Receiving response: HTTP/1.1 400 Bad Request

10:36:21  headers 256 - << HTTP/1.1 400 Bad Request

10:36:21  headers 259 - << Server: Apache-Coyote/1.1

10:36:21  headers 259 - << X-Content-Type-Options: nosniff

10:36:21  headers 259 - << Content-Length: 99

10:36:21  headers 259 - << Content-Type: application/problem+json

10:36:21  headers 259 - << Date: Tue, 25 Aug 2015 17:36:21 GMT

10:36:21  headers 259 - << Connection: close

10:36:21  wire 86 -  << "{"responseCode":-1,"response":null,"i18nCode":1,"englishMessage":"Missing query= in the POST body"}"

Outcomes