Jenkins API in scripted Pipeline


While calling the Post API getting following error in scripted pipeline

hudson.AbortException: Fail: Status code 500 is not in the accepted range: 100:399

pipeline code

def response = httpRequest url: ‘http://localhost:7055/APIIntegration/JenkinsAPI/’ , httpMode: ‘POST’, requestBody: ‘{“value1”:“abc,abc@122”}’



Please look into this let me know where i am going wrong. I can able to get response from Postman.

You are asking us why your application is returning a 500? It’s not really something we could know anything about. Hopefully the application you are running outputs lots so you can see errors.