BookmarkSubscribeRSS Feed
learn_SAS_23
Quartz | Level 8
filename resp temp;
options noquotelenmax;
proc http
/* Substitute your webhook URL here */
url="https :webhook uRL"
method="POST"
in=
'{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"summary": "Test message from SAS",
"text": "This message was sent by **SAS**!"
}'
out=resp;
run;

Hello Team , 

 

Am trying to send messages in teams channel with above code

and getting below error ,

 

ERROR: Error connecting to 111.11.111:113. (The connection has timed out.)
ERROR: Unable to establish connection to microsoft365.webhook.office.com.
ERROR: Unable to connect to Web server.

 

with  reference documentation as below link created a webhook and used in the above code from sas EG 

https://blogs.sas.com/content/sasdummy/2019/09/05/sas-microsoft-teams/   , 

 

please post your taught on above error.

 

4 REPLIES 4
andreas_lds
Jade | Level 19

Talk to your network admins, maybe outbound connection are blocked, due to log4shell.

ChrisHemedinger
Community Manager

Use this method to test that PROC HTTP can access the internet from your SAS environment.

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
learn_SAS_23
Quartz | Level 8
Thanks Chris , I tried with all methods in the link , but i still get below error


filename resp "%sysfunc(getoption(WORK))/echo.json";
proc http
url="https://httpbin.org/stream/1"
method="GET"
out=resp;
run;

ERROR: Host name resolution failed
SASKiwi
PROC Star

That suggests to me that your SAS server has firewall rules blocking access to public internet sites like httpbin.org. I tried it from my home PC and I can get to that website. You will need to talk to your SAS administrator about what rules are in place and how to gain access.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 532 views
  • 4 likes
  • 4 in conversation