We are getting below error with proc http . Please advise?
Please see below the log. I can access the login ID and password page with below URL.
25 GOPTIONS ACCESSIBLE;
26 filename _tmpfref
26 ! "/usr/opt/SAS/SASData/SASData/IEM/Global_SearchIndex_UpdateData/Source/search_config_files/rr_search_config.xml";
27 proc http
27 ! url="https://ecrr1.xx.xx.com:8343/SASWIPClientAccess/rest/content/545100/SearchConfig/attachments/279/con..."
27 ! method="get"
28 out=_tmpfref ct="application/x-www-form-urlencoded" HTTP_TOKENAUTH ;
31 GOPTIONS NOACCESSIBLE;
32 %LET _CLIENTTASKLABEL=;
33 %LET _CLIENTPROCESSFLOWNAME=;
34 %LET _CLIENTPROJECTPATH=;
35 %LET _CLIENTPROJECTPATHHOST=;
36 %LET _CLIENTPROJECTNAME=;
37 %LET _SASPROGRAMFILE=;
38 %LET _SASPROGRAMFILEHOST=;
ERROR: Unauthorized: Check username/password.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE HTTP used (Total process time):
real time 0.59 seconds
cpu time 0.02 seconds
The error message indicates it's a user/password issue, but you appear to have tested that based on " I can access the login ID and password page with below URL."
I recommend you open a TS track for this question.
Please include the following:
- SAS Version you are running (the following code will report SAS version information)
%put &sysvlong ;
%put &sysscpl ;
%put &syssite ;
- Registry Report (*.txt files) for each server, please clearly name the report files to reflect the server it was executed on.
- The code
- The full log
- Has this been working in the past, if so when was it last working, and what has changed?
With 25 characters, you do not need any special characters. Upper/lowercase letters, digits and underlines allow 63**25 permutations. A randomly generated password with these characters can't be brute-forced.
2.From your post it is clear it is an authentication failure. Did it work before the passwords were updated?
You can try other methods of authentication too.
Similarly try experimenting using other tools such as curl / postman /ARC client ot Jmeter.
3. One more suggestion You are using and xml file in creating fileref. In that event then try specifying content-type (ct) as 'text/xml'. using verbose option will also help.
4.Please do verify file and folder permissions.
5.If nothing else works, I suggest changing the passwords.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.
Find more tutorials on the SAS Users YouTube channel.