Go to All Forums

"This url is forbidden" error message when creating REST API Monitor

Hi,

I'm in the process of setting up a REST API monitor as described on the page www.site24x7.com/help/admin/adding-a-monitor/rest-api-monitor.html. Our API uses OAuth so I also configured an OAuth provider and selected the provider in the dropdown list next to 'Provider Name'. When checking the OAuth provider I do see an access taken and a refresh token.

However, when I save the monitor itself it keep on getting the error "This url is forbidden".

I found a similar post in the Community on this (www.site24x7.com/community/monitoring-rest-api-with-bearer-token) but this did not provide a solution to me.

Has anyone experienced this before? What could be the solution for this?

 

Regards,

Like (0) Reply
Replies (1)

Hi,

I found the solution for the problem after reading the following Community www.site24x7.com/community/how-to-monitor-response-code-forbidden. The reason was that only HTTP Status Code 200 was configured to accepted. I updated the list to 200,403 and now the monitoring works.

HTTP Status Code 403 is returned by default when browsing to the endpoint without authentication.

 

 

Regards,

Like (0) Reply

Was this post helpful?