Spring RestTemplate gives “500” error but same URL, credentails works in RestClient and Curl

后端 未结 7 1808
眼角桃花
眼角桃花 2020-12-30 03:06

An Url, Credentials works in RestClient UI as well as with Curl where as i\'m getting \"500\" error when access the same via Spring RestTemplate.

I am using the foll

7条回答
  •  無奈伤痛
    2020-12-30 03:19

    I have also faced a situation where server response was "500 Internal server error"

    Though I have received success response from Postman for the same parameter value. So the problem was not in server side.

    The problem was typo in parameter name, mismatch spelling between application parameter and server parameter

    Server parameter        -> requestLabel
    Application parameter   -> requestLable
    

    Hope someone new like me get help from this.

提交回复
热议问题