Topic
  • 3 replies
  • Latest Post - ‏2013-07-25T04:05:41Z by cmari
cmari
cmari
4 Posts

Pinned topic HTTP Response code 400

‏2013-02-05T05:46:05Z |
We have a WSP service with a set of request, response and error rules. And we have set Process backend errors to OFF. Recently we upgraded the firmware version to 3.8.2.14 (from 3.8.2.0). Post that we found an issue in all error responses sent back (by error rule) to the clients, the protocol response code is set to 400. Because of this most of the SOAP clients are not able to parse the response message.

Some data collected from probe and client response.

Input context of error rule
var://service/error-code string 0x00d30003
var://service/error-headers string 'HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset="utf-8"
X-Backside-Transport: FAIL FAIL
Connection: close'

Output context of error rule
var://service/error-code string 0x00d30003
var://service/error-headers string 'HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset="utf-8"
X-Backside-Transport: FAIL FAIL
Connection: close'

Response header received in the client
Firmware: 3.8.2.14
HTTP/1.1 400 Error
Content-Type: text/xml
X-Backside-Transport: FAIL FAIL
Connection: close

Whereas in the previous firmware we are getting 500 response code, for the same configuration.
Response header received in firmware 3.8.2.0
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
X-Backside-Transport: FAIL FAIL
Connection: close

Tested in the latest fixpack (3.8.2.17) also, getting 400 response only.

Any suggestions to solve this issue?
  • chauhan_vin1
    chauhan_vin1
    24 Posts

    Re: HTTP Response code 400

    ‏2013-07-23T23:28:35Z  

    Check for your request rule may be the Input Output variables are modified causing to do an empty payload POST which could cause the service to throw back HTTP 400 Bad Request.

    The value of dp:response-header('x-dp-response-code') in Error rule is always "HttpStatusCode Error" for example 400 Error , the same value in response rule is "HttpErrorCode Processed".

     

     

  • msmps
    msmps
    193 Posts

    Re: HTTP Response code 400

    ‏2013-07-24T13:21:36Z  

    Are you guys doing decryption?

    This might help.

    https://www.ibm.com/developerworks/community/forums/html/topic?id=bf1f4fad-8eb4-4fb2-9225-d62b8cf2de72#8be7584d-ce0b-4713-8c61-a92d6e01c483

    http://www-01.ibm.com/support/docview.wss?uid=swg21598653

  • cmari
    cmari
    4 Posts

    Re: HTTP Response code 400

    ‏2013-07-25T04:05:41Z  
    • msmps
    • ‏2013-07-24T13:21:36Z

    Thanks Robert, we are doing decryption in our flow. We got the same advise from IBM support team, the issue got resolved by disabling "Rewrite Error Messages".