Highlighted
Absent Member.
Absent Member.
1474 views

Getting Following Error -26630: HTTP Status-Code=401 (Unauthorized) for site[MsgId: MERR-26630]

since few days i am working on a vmntest.srvchangedsitename-now.com now site script but i am failing by trying multiple options. (http/html protocol)

i am not able to complete the login scenario itself ..getting Error -26630: HTTP Status-Code=401 (Unauthorized) , tried correlations as well

Below is the Error Log :

I am just adding the Action part from start point to the point where it failed

 
Action.c(169): Resource "https://vmntest.vmntest.srvchangedsitename-now.com-now.com/scripts/js_includes_customer.jsx?v=07-22-2015_1657&lp=Mon_Jul_27_10_43_40_PDT_2015&c=7_293" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(169): Resource "https://vmntest.vmntest.srvchangedsitename-now.com-now.com/scripts/doctype/js_includes_legacy.jsx?v=07-22-2015_1657&lp=Mon_Jul_27_10_43_40_PDT_2015&c=7_293" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(169): Resource "https://vmntest.vmntest.srvchangedsitename-now.com-now.com/images/x.gifx" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(169): Resource "https://vmntest.vmntest.srvchangedsitename-now.com-now.com/images/loading_anim2.gifx" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(169): Resource "https://vmntest.vmntest.srvchangedsitename-now.com-now.com/scripts/doctype/js_includes_last_doctype.jsx?v=07-22-2015_1657&lp=Mon_Jul_27_10_43_40_PDT_2015&c=7_293" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(169): web_submit_data("login.do_2") was successful, 4806 body bytes, 678 header bytes, 18 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(195): web_url("momentjs.jsdbx_3") started [MsgId: MMSG-26355]
Action.c(195): web_url("momentjs.jsdbx_3") was successful, 9193 body bytes, 347 header bytes, 20 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(202): web_url("response_time.gifx_3") started [MsgId: MMSG-26355]
Action.c(202): web_url("response_time.gifx_3") was successful, 370 body bytes, 342 header bytes [MsgId: MMSG-26386]
Action.c(211): web_submit_data("xmlhttp.do") started [MsgId: MMSG-26355]
Action.c(211): Error -26630: HTTP Status-Code=401 (Unauthorized) for "https://vmntest.vmntest.srvchangedsitename-now.com-now.com/xmlhttp.do" [MsgId: MERR-26630]
Action.c(211): web_submit_data("xmlhttp.do") highest severity level was "ERROR", 84 body bytes, 604 header bytes, 16 chunking overhead bytes [MsgId: MMSG-26387]
Action.c(211): Notify: Transaction "02_Login" ended with "Fail" status (Duration: 2.2801 Wasted Time: 0.0372).
Ending action Action

 

 

============================ TRIED BELOW SOLUTIONS =================

1. Added webset user

2. Corelations for few values in Web_submit_data()

3. Added JESSION cookie and corelated that

4. Tried Winnet Record/Replay method

5. Few changes here and there ...

 

In the extended log it is displaying something about invalid token -

<?xml version="1.0" encoding="UTF-8"?><xml error="invalid token"/>

please kindly with poosible approach that can be done... if you need any further details kindly let me know ..

 

Thanks in Advance

0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

Re: Getting Following Error -26630: HTTP Status-Code=401 (Unauthorized) for site[MsgId: MERR-26630]

Such error may happen when the server uses “token based” authentication, rather than “standard” HTTP one.

Please check the request headers from the recording (in the code generation log).

If it is the case, you can add the appropriate "web_add_header" step and probably correlate the header value.

0 Likes
Highlighted
New Member.

Re: Getting Following Error -26630: HTTP Status-Code=401 (Unauthorized) for site[MsgId: MERR-26630]

The script from the recording already has the " web_add_auto_header" along with the token but the identity URL following this is still failing with the 403 Forbidden error. Any ideas?

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: Getting Following Error -26630: HTTP Status-Code=401 (Unauthorized) for site[MsgId: MERR-26630]

Hi RaghuRambo, 

try to set the "Use WinInet replay instead of Sockets" option from "Runtime Settings -> Internet Protocol -> Preferences". Another suggestion is that to insert a "web_set_sockets_option" function, for example

    web_set_sockets_option("INITIAL_BASIC_AUTH", "1");

with values ​​for the correct version. 

Tell me if the problem ends well!

Lorenzo

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.