You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is similar to #131, but applies when using a bot instead of a webhook. When using the action behind a corporate proxy (e.g. on self-hosted runners), connection will time out because the proxy configuration is not respected.
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
example code related
testing related
discussion
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
@slack/web-api's WebClient already supports sending a custom agent (and intentionally disables Axios' proxy detection). I don't think this is a hard problem to fix, but I couldn't figure out how to write satisfactory tests for it.
The text was updated successfully, but these errors were encountered:
Hi, @raihle! Thanks so much for submitting this question! 🙌
A few quick questions so I can get a better picture of what's happening:
Have you verified that your HTTPS_PROXY / https_proxy environment variables are getting set correctly with the desired proxy URL?
Have you tested the proxy to determine it works as desired to handle incoming connections and doesn't time out on its own?
Additionally, you mentioned having an idea of how this issue might be resolved based on the @slack/web-api WebClient - if you'd like to open a PR for this repo that fixes this issue, I can take a look and help provide some direction on writing tests for it! 😄
Yes, I am sure that the environment variables are set. Actually, we were using an (old) fork of this repository until recently with the proxy functionality hacked in. I took some time to do that again (based on the current main) in #205. I managed to add some rudimentary tests as well, but I'm very open to suggestions.
@raihle Wonderful, thank you so much for opening that PR 🙌 I will take a look either later today or first thing tomorrow and will be sure to leave some feedback if needed 😄
Description
This issue is similar to #131, but applies when using a bot instead of a webhook. When using the action behind a corporate proxy (e.g. on self-hosted runners), connection will time out because the proxy configuration is not respected.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Reproducible in:
package version: 1.24.0
node version: 16
OS version(s): Ubuntu 22.04
Steps to reproduce:
Expected result:
The message is sent
Actual result:
The actions fails due to connection timeout
Attachments:
@slack/web-api's WebClient already supports sending a custom
agent
(and intentionally disables Axios' proxy detection). I don't think this is a hard problem to fix, but I couldn't figure out how to write satisfactory tests for it.The text was updated successfully, but these errors were encountered: