Getting Error while trying to use POST requests

<Response [500]> {“message”:“error.internalServerError”,“description”:“Internal server error”,“fieldErrors”:null}

Getting the “internalServerError” while using the requests.post method. and the same data,header,url is working through Postman.

r = requests.post (url,headers=headers,data=data)