HTTP status code as 0

VengadeshB52217
Tera Contributor

Hi All,

While trying to post attachments from ServiceNow to jira via rest message Im getting the status code as 0 and response as null. Does anyone have idea on this?

 

6 REPLIES 6

PrashantLearnIT
Giga Sage

Hi @VengadeshB52217 

 

This sounds like you have a networking issue between your system and your Jira.  Or that the call you are making is wrong somehow (a Cors error could be a network issue or a malformed request).  It's also possible that running your application on "localhost" is a problem because that means "this machine" and limits networking.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Hi ,

 If so the issue(ticket in jira) wont be created right?. But for my case issue is getting created post that im trying to add an attachment to the issue that states the code as 0.

Robbie
Kilo Patron
Kilo Patron

Hi @VengadeshB52217,

 

A HTTP response code 0 essentially means that there is no response.

For troubleshooting I like to use an alternative tool such as Postman making the same API call or even making a handshake with the system (In your case Jira) just to isoltae where the issue may be as well as checking connections etc.

 

Check the below Jira community:

https://community.atlassian.com/t5/Jira-questions/JIRA-Rest-Api-Status-Code-0-Error-Message-The-unde...

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.





Thanks, Robbie

Hi @Robbie ,

It an onpremise jira software.I cant able to go with postman