Topic
  • 1 reply
  • Latest Post - ‏2019-08-23T13:25:26Z by HermannSW
VathsaAdi
VathsaAdi
70 Posts

Pinned topic Invalid Json resposne during dp:url-open

‏2019-08-22T16:27:05Z |

Hi,

 

Getting below response with junck characters while invoking a backend using dp:url-open

 

dp:url-open target="{$RoutingURL}" response="responsecode-binary" http-headers="$ClientHeader" data-type="base64" content-type="application/json" ssl-proxy="{$RoutingURLSSL}" http-method="post"

 

Response :

1e6
{"errors":[{"code":401,"reasonCode":"Invalid Header","message":"User Id can't be supplied blank."},{"code":401,"reasonCode":"Invalid Header","message":"Invalid Application Id supplied."},{"code":401,"reasonCode":"Invalid Header","message":"Invalid Consent Level - only values supported 0, 1 and 2."},{"code":401,"reasonCode":"Invalid Header","message":"Outlet I

  • HermannSW
    HermannSW
    8692 Posts

    Re: Invalid Json resposne during dp:url-open

    ‏2019-08-23T13:25:26Z  

    You get back a chunked HTTP response, 1e6 is hex length of message, 
 is carriage-return.

    Message clearly states what is wrong with the message you sent, but we cannot see.

    Please take packet capture and see what gets sent from DataPower to $RoutingURL.

    In case it contains no confidential information and you still have questions, please attach the complete message (best raw) from Wireshark here.
    Otherwise open a support ticket with that information.

    Hermann.

    Updated on 2019-08-23T13:25:54Z at 2019-08-23T13:25:54Z by HermannSW