-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document starting hubot-slack with a proxy #372
Comments
@resteinbock @DEGoodmanWilson I have been tracking this issue with websockets respecting the environment proxy in the slack api. A fix was merged and it is already available in version Could we bump the slack client API version to |
I've just freshly installed a bot, which loads version 3.6.1 of the client API and it still doesn't seem to work. |
@pietvandongen - I got caught by this... You must use lower case env variable for https_proxy or this won't work. |
Further to @ojacques's observation:
* Set to the same value |
The startup script currently looks for 0ce771c#diff-44aca805fd3e634b2ed4f6bc2ccb0749 I feel like we should change this to uppercase, as is standard with most ENV variables. |
Any movement on this? |
@davidkarlsen This has been working for me for a while now when setting |
@rqc
could you list your npm's and versions? |
the reason this issue wasn't closed is because we hadn't spent the time investigating whether there was a reproducible issue here. we took the time to conduct several tests today and were able to successfully connect using a proxy. i'll be turning this into a documentation issue because we should document this feature and how its expected to work. all you need to do is set the
|
Description
I have followed the guidance here and added
proxy.coffee
but hubot startup is hanging on loading the slack adapter before loading hubot scripts to process that configuration.ie
robot.adapter.once 'connected', loadScripts
in hubot/node_modules/.bin/hubot line 166From what I can tell, the
proxiedRequestTransport
fromnode_modules/@slack/client/lib/clients/transports/request.js
is not being used onSlackClient.connect()
because the options object innode_modules/hubot-slack/slack.coffee
does not allow for options to be provided for proxies (there is only an option fortoken
).Reproducible in:
hubot version: 2.19.0
hubot-slack version: 4.2.1
@slack/client version: 3.6.0
OS version(s): ubuntu
Device(s): AWS EC2 instance
Steps to reproduce:
Expected result:
The hubot slack adapter to respect standard
HTTP_PROXY
andHTTPS_PROXY
environment variables and connect on hubot startup using connections through the proxy server. Otherwise use standard hubot settings to support proxies.Actual result:
hubot start command fails because the Slack adapter is unable to connect to Slack through the proxy.
Attachments:
Script restart attempt #6 below was started with outbound traffic restricted to only allow traffic to go through the proxy server (failed hubot start). Script restart attempt #7 below opened hubot server traffic to all IP addresses on ports 80 and 443 (successful hubot start).
The text was updated successfully, but these errors were encountered: