Response Body showing message : [ERROR CODE: -1 ] peer not authenticated

deepanshanand
Kilo Expert

We have performed rest integration between snow and third party tool.

in some transactions that are getting failed , i am seeing Response body = [ERROR CODE: -1 ] peer not authenticated.

this is only happening for some of the transactions not all, any idea what could be going wrong here.?

I don't suspect Certificates to play a role here as some transactions are successful.



6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Deepanshanand,

Do you see any pattern for the requests which are failing? i.e. request body containing similar type of data

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Deepanshanand,

Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Deepanshanand,

Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

i am seeing difference in request headers for transactions in outbound logs

correct transaction headers : {Content-Length=66, Content-Type=application/json, Authorization=Basic abc, User-Agent=Jakarta Commons-abc, Host=abc.com}

failed transaction : {Content-Length=66, Content-Type=application/json, Authorization=Basic abc}

for failed transactions , i am seeing data missing, but not sure about the cause of this.

there is a single code which is generating both headers, have you came across anything like this?