Custom Slack Bot cannot connect

江枫思渺然 提交于 2019-12-11 01:28:12

问题


I've been trying to make a slack bot that replies to simple queries and does some simple stuff to help around the office. The bot works fine, it just seems that it cannot seem to connect to Slack from behind our proxy. When I test it from my own mobile internet connection it works fine, but when trying to run it behind the proxy it cannot connect to slack. Is there any way I can configure proxy settings for the bot to use when it connects? This is all very strange to me because Slack is not blocked in any way by our proxy.


回答1:


What language are you developing the bot in? The library you're using to connect to the API should provide functionality to use a proxy during the connection. As an example, in Python you could use the requests package, which allows you to define an HTTP and HTTPS proxy.

(Docs)



来源:https://stackoverflow.com/questions/35012201/custom-slack-bot-cannot-connect

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!