Method failed: (/api/products/3) with code: 403 - Forbidden username/password combo

Bhupendra Rath
Tera Contributor

I am getting below error while accessing a public url - 

Method failed: (/api/products/3) with code: 403 - Forbidden username/password combo

URL - https://reqres.in/api/products/3   this is a public url, not any credential is required for this , I have tried with asp.net code, PostMan and Ajax code, It works fine  but when i try it with Rest Messages, it given below error

Can anyone help me in this please?

find_real_file.pngfind_real_file.png

5 REPLIES 5

Prateek kumar
Mega Sage

I see there is no authentication set.

https://docs.servicenow.com/bundle/london-application-development/page/integrate/outbound-rest/task/...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

ARG645
Tera Guru

 Bhupendra,

 

Your API calls being blocked by CloudFare, which provides security for the website. For more information explore the below link 

How does Cloudflare work?

The Owner of the resource reqres.in is probably using Cloudflare to ban the ServiceNow's autonomous system number (ASN) to block the API calls. 

ASNumber: 16839

Please contact the resource owner and request to remove this restriction to make the API calls from ServiceNow.

 

Thank you,

Aman Gurram

JR Morgan
Kilo Contributor

Just want to post my specific reason was related to Cloudflare, but it was failing the "Browser Integrity Check". You can add a rule to bypass this via Cloudflare firewall rules:

 

babayega
ServiceNow Employee
ServiceNow Employee

How do you do that?

I am getting the same error, when trying to do the same thing for an API I do not own.

I have an access key and everything works fine in browser and postman. But trying to hiot the endpoint in this manner gives me the same exact error.