Hello,
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
stage(‘API’){
steps{
script{
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.