HTTP 401 Unauthorized when logging in to NetMaster WebPortal
search cancel

HTTP 401 Unauthorized when logging in to NetMaster WebPortal

book

Article ID: 279281

calendar_today

Updated On: 02-14-2024

Products

NetMaster Network Management for TCP/IP

Issue/Introduction

NetMaster Web Portal STC is up and running, however, when a user tries to log in using the correct credentials, the portal returns the message:
HTTP 401 Unauthorized

Cause

Incorrect hostname in yaml configuration file

Resolution

The joblog of the NetMaster Web Portal STC shows the following error:

ERRORS WERE FOUND WHILE TESTING THE REGION CONNECTION INFO:                                 
Ýmain                ¨ WARN  c.b.n.w.s.RegionConfigVerifier(RegionConfigVerifier.kt:93)     
Error contacting region: 16eb6634-468e-5aeb-96d8-5b86b52d934d                               
javax.ws.rs.ProcessingException: java.net.UnknownHostException: hostname


where hostname is the value of the hostname parameter in the Web Portal yaml configuration file:

  regions:
    # RegionA can optionally use security settings local to itself
    - hostname: hostname
      port: nnnnn

Once updated the parameter with the correct hostname (or IP address) of the NetMaster API Service and recycled the NetMaster Web Portal STC, users can successfully log in to the Web Portal.