Method failed: (/v2.2/api/tenants/****) with code: 403 - Forbidden username/password combo

Vivek Verma
Mega Sage
Mega Sage

Hello,

I have been testing some cloudgenix API. Even those APIs is working fine with POSTMAN. But I dont know why still getting quite strange response via ServiceNow REST Message. 

 

EndPoint: https://api.*****.cloudgenix.com:443/v2.2/api/tenants/****

Authentication(in header): x-auth-token         :        ''Key Value" 

 

 

HTTP Status: 403

Error Message: Method failed: (/v2.2/api/tenants/****) with code: 403 - Forbidden username/password combo 

Error Code: 6

 

Note: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0720934, I tried this solution but no luck 😞

 

Thanks,

Vivek

4 REPLIES 4

palanikumar
Giga Sage

Hi,

Have you supplied any authentication details to the API in the Post Man? Please make sure it doesn't have any special characters (Certain special characters may fail) in both credential and URL

Thank you,

Palani

Thank you,
Palani

Yes, In POSTMAN. we are passing static Oauth Token in the header as x-auth-token.

And working fine. 

But same is failing in ServiceNow. 

find_real_file.png 

 

Hi,

There are 10 hidden headers in the post man as per the screenshot. Un-hide it (by clicking the text "10 hidded") and disable them (uncheck the checkbox before header) and see whether the request works fine in Postman.

If Postman respond same error then enable one header at a time and find out header resolves this issue. The same header can be used in ServiceNow

Thank you,

Palani

Thank you,
Palani

Were you able to resolve this? I am having the same issue.