REST API Monitor - FAQS

REST API Monitor - FAQS

1. What to do when Basic Authentication fails in REST API monitor?

When Basic Authentication fails in the REST API monitor, follow the below steps to troubleshoot the error.
  1. Ensure the credentials provided in Applications Manager (Username and Password) are correct.
  2. Try manually sending the username and password in the Authorization request header by following the below steps to verify the credentials.
    1. To include credentials in the header, You need to encode the username and password in Base64 format. For example, if the username is admin and the password is test, the Base64 encoded value of admin:test is YWRtaW46dGVzdA==
    2. Provide the Base64 encoded value in Custom HTTP(S) Headers field in the format Authorization_sep_Basic <Base64 value>. For example, Authorization_sep_BASIC YWRtaW46dGVzdA==. If there are multiple headers, Use # to separate the header. 
    3. After adding the credentials to the Custom HTTP(S) Headers, Perform Test Credential again to verify that the credentials pass successfully.
Notes
In Basic Authentication, the client first makes a request without credentials. If the server responds with a 401 Unauthorized response, the client retries with credentials. However, some server configurations close the connection after a 401 response if no credentials are sent initially, causing Basic Authentication to fail. In such cases, Custom HTTP(s) Headers should be used to send the credentials directly in the request to bypass this issue.
2. How to configure User-Agent of the browser in REST API monitor?

User-Agent header helps target server in identifying the client. To configure User-Agent of the browser, Follow the below steps.
  1. Go to google search in browser and search for My User-Agent. The top of the search result will show the User-Agent of the browser.
  2. Now provide that user agent value in Custom HTTP(S) Headers field in the format User-Agent_sep_<Value>. For example, User-Agent_sep_Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36. If there are multiple headers, use # to separate the headers.
  3. After providing User-Agent. Perform Test Credential and verify the response.
3. How to configure appropriate Content-Type in the request header?

Content-Type header helps target server in identifying the format of the payload (text, xml or json etc.) sent in request. To configure appropriate content-type, follow the below steps.
  1. Select the Content-Type header value based on the payload type mentioned below.
    1. For FORM -> application/x-www-form-urlencoded
    2. For Text -> text/plain
    3. For XML -> application/xml
    4. For JSON -> application/json
  2. Now provide the Content-Type value in Custom HTTP(S) Headers in the format Content-Type_sep_<Value>.  For example, Content-Type_sep_application/json
  3. After providing Content-Type, Perform Test Credential and verify the response.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Real User Monitor (RUM) - Troubleshooting

                      If the monitor has not polled data for a long time, follow the below steps for troubleshooting. Step 1: Check the RUM Agent configuration Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer this help ...
                    • REST API Monitor Troubleshooting Guide

                      Whether you're adding a new REST API monitor or troubleshooting an existing one, the following steps can help resolve common issues. Troubleshooting 4xx Error Codes (e.g., 401, 403) Check Request Configuration: Verify that the correct HTTP method ...
                    • Self monitor Applications Manager using Real User Monitoring

                      We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
                    • Service Now Event Integration using Webhook / Rest API Action

                      Steps to perform in Service Now 1) Login to your ServiceNow Instance(dev*****133.service-now.com) 2) Search for the Rest API Explorer and open it 3) In the Rest API Explorer page choose the Namespace and API Name with the proper API version. For ...
                    • How to get ISP and Region data in Real User Monitor?

                      The default setting of the Real User Monitor does not display ISP and region data for the end user. To obtain the data, you have the option to use a third-party Geolocation API. Currently, RUM exclusively supports APIs that provide responses in JSON ...