Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Connection Refused

lakshminaraya11
Kilo Explorer

Hi , I am using PUT method to update the short_description from Java program. But it is giving "Connection to https://dev14659.service-now.com:443 refused" exception. Please help me in that.

16 REPLIES 16

make sure user id and password is correct:


  new UsernamePasswordCredentials("admin", "Servicnow@123"));


If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

username and password is correct and changed from


credsProvider.setCredentials(new AuthScope(new HttpHost("instance.service-now.com")),



to



credsProvider.setCredentials(new AuthScope(new HttpHost("https://dev14659.service-now.com")),


But giving the same exception


please give a try again!


I dont see any problem on your instance.


when i tried updating the same sc_request_item from postman:



find_real_file.png



that was successful attempt.


Something must be wrong with your java snippet


If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

Hey Sushant finally PUT is working with URLConnection