Forum Discussion

ecerichter's avatar
ecerichter
New Contributor
5 years ago

SoapUI 5.5.0 json request results in "400 - Bad request" with message "Input Length = 1"

SOAPUI 5.5.0

 

I'm trying to POST a json request to a endpoint, but all attemps result in 400 BAD REQUEST.

In the response, I get the error:

 

 

Same request works fine in Postman and also in FireFox RestClient plugin.

 

Thanks in advance for any tips!

 

Regards,

 

Edson

 

6 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Please check the headers passed in POSTMAN and make sure the same are also passed in SoapUI as well.
    • ecerichter's avatar
      ecerichter
      New Contributor

      Thanks,

      Unfortunately, I've tried every possible header, individually and in groups, always with same error.

  • ecerichter  : Check the request in RAW tab.

     

    Because generally this response comes when the Request is invalid. So you can check your request in RAW tab.

     

    Hope it will help you in solving the issue.

    • ecerichter's avatar
      ecerichter
      New Contributor

      It seems correct to me (I've used similar code in Java and .Net with success):

       

       

       

      I'm not used to SoapUI interface, may be is something I've not configured...

      Thanks,

      Edson

      • cdcaires's avatar
        cdcaires
        New Contributor

        Hi,

         

        I'm facing this same situation, and already try many things, but not work yet. Please help us. Thanks