禅道webhook发送钉钉消息
couldn't connect to host
1、可以检查下网络问题,禅道服务器是否可以访问钉钉服务器,可以在禅道服务器ping一下钉钉的域名,看下网络通不通。如果网络不通,需要检查网络的问题。
2、如果可以ping通,但是还是拒绝提示无法连接,有可能服务器无法解析钉钉域名,可以在系统hosts文件,配置下ip和域名的映射,ping域名时可以查看到域名对应的ip。
couldn't connect to host
。看下tmp/log/saas.20230614这个日志文件里的信息
errors: Couldn't resolve host 'api.zentao.net' ,找到了,返回把这个错?
文件名没拼完,就是以saas开头的文件,将最后的内容发出来
url: https://api.zentao.net/extension-apiGetExtensions-bycode-d2ViaG9va3M=-0-1000-1.json?lang=zh_cn&managerVersion=1.3&zentaoVersion=10.5
results:
errors: Couldn't resolve host 'api.zentao.net'
现在我hosts里面把这个地址也加上了api.zentao.net
现在saas文件里面最后报这个了:但是消息还是不通
20230614 14:09:34: extension-browse
url: https://api.zentao.net/extension-apiGetExtensions-bycode-d2ViaG9va3M=-0-1000-1.json?lang=zh_cn&managerVersion=1.3&zentaoVersion=10.5
results:{"status":"success","data":"{\"title\":\"\",\"layouts\":{\"all\":{\"bottom\":[{\"id\":\"1265\",\"title\":\"\\u9875\\u811a\",\"type\":\"htmlcode\",\"content\":\"{\\\"customImage\\\":null,\\\"topLeftContent\\\":\\\"\\\",\\\"topRightContent\\\":\\\"\\\",\\\"custom\\\":{\\\"wide\\\":{\\\"css\\\":\\\"#foot{\\\\r\\\\n background:#0a48d1;\\\\r\\\\n ul{\\\\r\\\\n max-width:1150px;\\\\r\\\\n margin:0 auto;\\\\r\\\\n overflow:hidden;\\\\r\\\\n padding:50px 0 30px;\\\\r\\\\n list-style:none;\\\\r\\\\n }\\\\r\\\\n li{\\\\r\\\\n float:left;\\\\r\\\\n width:16%;\\\\r\\\\n h3{\\\\r\\\\n margin:0 0 15px;\\\\r\\\\n color:#fff;\\\\r\\\\n font-size:14px;\\\\r\\\\n color:rgba(255,255,255,0.8);\\\\r\\\\n }\\\\r\\\\n h4{\\\\r\\\\n a{\\\\r\\\\n color:rgba(255,255,255,0.8);\\\\r\\\\n }\\\\r\\\\n margin:0;\\\\r\\\\n }\\\\r\\\\n a{\\\\r\\\\n display:block;\\\\r\\\\n line-height:2;\\\\r\\\\n color:rgba(255,255,255,0.6);\\\\r\\\\n &:hover{\\\\r\\\\n color:#fff;\\\\r\\\\n }\\\\r\\\\n }\\\\r\\\\n span{\\\\r\\\\n display:block;\\\\r\\\\n line-height:2;\\\\r\\\\n color:rgba(255,255,255,0.6);\\\\r\\\\n i{\\\\r\\\\n display:inline-block;\\\\r\\\\n width:20px;\\\\r\\\\n margin-right:5px;\\\\r\\\\n text-align:center;\\\\r\\\\n }\\\\r\\\\n }\\\\r\\\\n }\\\\r\\\\n li:last-child{\\\\r\\\\n width:20%;\\\\r\\\\n }\\\\r\\\\n .links{\\\\r\\\\n border-top:solid 1px rgba(255,255,255,0.2);\\\\r\\\\n .link{\\\\r\\\\n max-width:1170px;\\\\r\\\\n margin:auto;\\\\r\\\\n padding:10px 0;\\\\r\\\\n span{\\\\r\\\\n color:rgba(255,255,255,0.6);\\\\r\\\\n }\\\\r\\\\n a{\\\\r\\\\n display:inline-block;\\\\r\\\\n margin:3px 10px 3px 0;\\\\r\\\\n color:rgba(255,255,255,0.6);\\\\r\\\\n &:hover{\\\\r\\\\n color:#fff;\\\\r\\\\n }\\\\r\\\\n }\\\\r\\\\n }\\\\r\\\\n }\\\\r\\\\n}\\\",\\\"js\\\":\\\"\\\"}},\\\"content\\\":\\\"<div id=\\\\\\\"foot\\\\\\\">\\\\r\\\\n <ul>\\\\r\\\\n <li>\\\\r\\\\n <h3>\\\\u7985\\\\u9053\\\\u7248\\\\u672c<\\\\\\\/h3>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/page\\\\\\\/enterprise.html\\\\\\\">\\\\u7985\\\\u9053\\\\u4f01\\\\u4e1a\\\\u7248<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/page\\\\\\\/max.html\\\\\\\">\\\\u7985\\\\u9053\\\\u65d7\\\\u8230\\\\u7248<\\\\\\\/a>\\\\r\\\\n <\\\\\\\/li>\\\\r\\\\n <li>\\\\r\\\\n <h3>\\\\u4f7f\\\\u7528\\\\u6587\\\\u6863<\\\\\\\/h3>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/book\\\\\\\/zentaopms.html\\\\\\\">\\\\u5f00\\\\u6e90\\\\u7248\\\\u624b\\\\u518c<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/book\\\\\\\/zentaobizhelp.html\\\\\\\">\\\\u4f01\\\\u4e1a\\\\u7248\\\\u624b\\\\u518c<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/book\\\\\\\/program\\\\\\\/416.html\\\\\\\">\\\\u65d7\\\\u8230\\\\u7248\\\\u624b\\\\u518c<\\\\\\\/a>\\\\r\\\\n \\\\r\\\\n <\\\\\\\/li>\\\\r\\\\n <li>\\\\r\\\\n <h3>\\\\u6280\\\\u672f\\\\u652f\\\\u6301<\\\\\\\/h3>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/ask.html\\\\\\\">\\\\u6280\\\\u672f\\\\u95ee\\\\u7b54<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/faq.html\\\\\\\">\\\\u5e38\\\\u89c1\\\\u95ee\\\\u9898<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/book\\\\\\\/zentaopmshelp\\\\\\\/70.html\\\\\\\">QQ\\\\u7fa4<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.easycorp.cn\\\\\\\/page\\\\\\\/train.html\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u57f9\\\\u8bad\\\\u8bfe\\\\u7a0b<\\\\\\\/a>\\\\r\\\\n <\\\\\\\/li>\\\\r\\\\n <li>\\\\r\\\\n <h3>\\\\u7985\\\\u9053\\\\u793e\\\\u533a<\\\\\\\/h3>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/forum\\\\\\\/feedback.html\\\\\\\">\\\\u5efa\\\\u8bae\\\\u53cd\\\\u9988<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/customer-case.html\\\\\\\">\\\\u5ba2\\\\u6237\\\\u6848\\\\u4f8b<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/page\\\\\\\/college.html\\\\\\\">\\\\u7985\\\\u9053\\\\u5b66\\\\u5802<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/publicclass.html\\\\\\\">\\\\u7985\\\\u9053\\\\u516c\\\\u5f00\\\\u8bfe<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/page\\\\\\\/zentao-footprint.html\\\\\\\">\\\\u7985\\\\u9053\\\\u6d3b\\\\u52a8<\\\\\\\/a>\\\\r\\\\n <\\\\\\\/li>\\\\r\\\\n <li>\\\\r\\\\n <h3>\\\\u7985\\\\u9053\\\\u56e2\\\\u961f<\\\\\\\/h3>\\\\r\\\\n <a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.easycorp.cn\\\\\\\/\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u7985\\\\u9053\\\\u8f6f\\\\u4ef6<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/blog.html\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u7985\\\\u9053\\\\u535a\\\\u5ba2<\\\\\\\/a>\\\\r\\\\n <a href=\\\\\\\"\\\\\\\/page\\\\\\\/80191.html\\\\\\\">\\\\u52a0\\\\u5165\\\\u6211\\\\u4eec<\\\\\\\/a>\\\\r\\\\n <\\\\\\\/li>\\\\r\\\\n <li>\\\\r\\\\n <h3>\\\\u8054\\\\u7cfb\\\\u65b9\\\\u5f0f<\\\\\\\/h3>\\\\r\\\\n <span>\\\\u8054\\\\u7cfb\\\\u4eba\\\\uff1a刘璐<\\\\\\\/span>\\\\r\\\\n <span>\\\\u7535\\\\u8bdd\\\\uff1a18562550650<\\\\\\\/span>\\\\r\\\\n <span>\\\\u5fae\\\\u4fe1\\\\uff1a18562550650<\\\\\\\/span>\\\\r\\\\n <span> Q Q\\\\uff1a2845263372<\\\\\\\/span>\\\\r\\\\n <h4><a href=\\\\\\\"\\\\\\\/page\\\\\\\/80378.html\\\\\\\">\\\\u5317\\\\u4eac\\\\u3001\\\\u4e0a\\\\u6d77\\\\u3001\\\\u6df1\\\\u5733\\\\u5206\\\\u90e8<\\\\\\\/a><\\\\\\\/h4>\\\\r\\\\n <!--<span>\\\\u5b81\\\\u7ecf\\\\u7406\\\\uff1a18561684268<\\\\\\\/span>-->\\\\r\\\\n <\\\\\\\/li>\\\\r\\\\n <\\\\\\\/ul>\\\\r\\\\n\\\\t<div class=\\\\\\\"links\\\\\\\">\\\\r\\\\n\\\\t <div class=\\\\\\\"link\\\\\\\">\\\\r\\\\n\\\\t <span>\\\\u53cb\\\\u60c5\\\\u94fe\\\\u63a5\\\\uff1a<\\\\\\\/span>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/ztf.im\\\\\\\" target=\\\\\\\"_blank\\\\\\\">ZTF\\\\u81ea\\\\u52a8\\\\u5316\\\\u6d4b\\\\u8bd5\\\\u6846\\\\u67b6<\\\\\\\/a>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.zendata.cn\\\\\\\/\\\\\\\" target=\\\\\\\"_blank\\\\\\\">ZenData\\\\u6d4b\\\\u8bd5\\\\u6570\\\\u636e\\\\u751f\\\\u6210\\\\u5668<\\\\\\\/a>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/xuanim.com\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u55a7\\\\u55a7IM<\\\\\\\/a>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.minjiekaifa.com\\\\\\\/\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u654f\\\\u6377\\\\u5f00\\\\u53d1<\\\\\\\/a>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.hardenx.cn\\\\\\\/?from=upzentao\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u654f\\\\u6377\\\\u54a8\\\\u8be2<\\\\\\\/a>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.testwo.com\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u6d4b\\\\u8bd5\\\\u7a9d<\\\\\\\/a> \\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.ydisk.cn\\\\\\\/?from=upztlinks\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u60a6\\\\u5e93\\\\u7f51\\\\u76d8<\\\\\\\/a>\\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/devops.phodal.com\\\\\\\/\\\\\\\" target=\\\\\\\"_blank\\\\\\\">Ledge\\\\u77e5\\\\u8bc6\\\\u5e73\\\\u53f0<\\\\\\\/a> \\\\r\\\\n \\\\t\\\\t<a href=\\\\\\\"https:\\\\\\\/\\\\\\\/www.qucheng.com\\\\\\\/\\\\\\\" target=\\\\\\\"_blank\\\\\\\">\\\\u6e20\\\\u6210\\\\u8f6f\\\\u4ef6<\\\\\\\/a>\\\\r\\\\n\\\\t <\\\\\\\/div>\\\\r\\\\n\\\\t<\\\\\\\/div>\\\\r\\\\n<\\\\\\\/div>\\\"}\",\"template\":\"default\",\"grid\":\"12\",\"isRandom\":0,\"titleless\":\"0\",\"borderless\":\"0\"}],\"footer\":[{\"id\":\"461\",\"title\":\"\\u767e\\u5ea6\\u7edf\\u8ba1\",\"type\":\"htmlcode\",\"content\":\"{\\\"customImage\\\":null,\\\"topLeftContent\\\":\\\"\\\",\\\"topRightContent\\\":\\\"\\\",\\\"custom\\\":{\\\"wide\\\":{\\\"css\\\":\\\"#blockID\\\\r\\\\n{\\\\r\\\\n \\\\\\\/*.panel-heading {}*\\\\\\\/\\\\r\\\\n \\\\\\\/*.panel-body {}*\\\\\\\/\\\\r\\\\n}\\\",\\\"js\\\":\\\"\\\"},\\\"default\\\":{\\\"css\\\":\\\"#blockID\\\\n{\\\\n \\\\\\\/*.panel-heading {}*\\\\\\\/\\\\n \\\\\\\/*.panel-body {}*\\\\\\\/\\\\n}\\\",\\\"js\\\":\\\"\\\"}}}\",\"template\":\"default\",\"grid\":4,\"isRandom\":0,\"titleless\":0,\"borderless\":0}],\"top\":[{\"id\":\"115\",\"title\":\"\\u7f51\\u7ad9\\u5934\\u90e8\",\"type\":\"header\",\"content\":\"{\\\"top\\\":{\\\"left\\\":\\\"custom\\\",\\\"right\\\":\\\"login\\\"},\\\"topLeftContent\\\":\\\"<i class="icon icon-phone-sign"><\\\\\\\/i> <strong>4006-8899-23<\\\\\\\/strong> <i class="icon icon-phone"><\\\\\\\/i> <strong>0532-86893032<\\\\\\\/strong> <i class="icon icon-qq left"><\\\\\\\/i> <strong>2845263372<\\\\\\\/strong>\\\",\\\"topRightContent\\\":\\\"\\\",\\\"middle\\\":{\\\"left\\\":\\\"logo\\\",\\\"center\\\":\\\"nav\\\",\\\"right\\\":\\\"search\\\"},\\\"middleRightContent\\\":\\\"\\\",\\\"bottom\\\":\\\"\\\",\\\"customImage\\\":null,\\\"custom\\\":{\\\"wide\\\":{\\\"css\\\":\\\"#blockID\\\\r\\\\n{\\\\r\\\\n \\\\\\\/*.panel-heading {}*\\\\\\\/\\\\r\\\\n \\\\\\\/*.panel-body {}*\\\\\\\/\\\\r\\\\n}\\\",\\\"js\\\":\\\"\\\"},\\\"default\\\":{\\\"css\\\":\\\".toptext strong {\\\\n margin-right:5px;\\\\n}\\\\n\\\\n.yellow{\\\\n font-weight:bold;\\\\n color:yellow;\\\\n}\\\\n\\\\n#randomQQ{\\\\n margin-left:5px;\\\\n}\\\\n\\\\n#randomQQ span{display:none;}\\\",\\\"js\\\":\\\"\\\"}}}\",\"template\":\"default\",\"grid\":\"0\",\"titleless\":\"\",\"borderless\":\"\"}]}},\"extensions\":[],\"dbPager\":{\"recTotal\":0,\"recPerPage\":\"1000\",\"pageCookie\":\"pagerExtensionApigetextensions\",\"pageTotal\":0,\"pageID\":1,\"moduleName\":\"extension\",\"methodName\":\"apigetextensions\",\"params\":null},\"pager\":null}","md5":"6480fc6a9bac1386c481ba08be75aa8c"}
这个需要检查你的网络问题了,上面这个信息是访问插件列表的时候产生的,而不是你有发起webhook的时候,你需要查找下webhook的信息