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
We are running semantic-release on a private gitlab instance on our network, and all connections outside the network go through a corporate proxy. When we run with the webhook, we get the following error:
10:20:37 PM] [semantic-release] › ✘ SLACK CONNECTION FAILED request to [MASKED] failed, reason: read ECONNRESET
AggregateError:
SemanticReleaseError: request to [MASKED] failed, reason: read ECONNRESET
at module.exports (/opt/app/node_modules/semantic-release-slack-bot/lib/postMessage.js:49:11)
at async module.exports (/opt/app/node_modules/semantic-release-slack-bot/lib/success.js:119:3)
at async validator (file:///opt/app/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
at async file:///opt/app/node_modules/semantic-release/lib/plugins/pipeline.js:37:34
at async Promise.all (index 0)
at async next (file:///opt/app/node_modules/p-reduce/index.js:15:44)
at file:///opt/app/node_modules/semantic-release/lib/plugins/pipeline.js:54:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async pluginsConfigAccumulator.<computed> [as success] (file:///opt/app/node_modules/semantic-release/lib/plugins/index.js:87:11)
at async run (file:///opt/app/node_modules/semantic-release/index.js:215:3)
at async Module.default (file:///opt/app/node_modules/semantic-release/index.js:275:22)
at async default (file:///opt/app/node_modules/semantic-release/cli.js:55:5) {
errors: [
SemanticReleaseError: request to [MASKED] failed, reason: read ECONNRESET
at module.exports (/opt/app/node_modules/semantic-release-slack-bot/lib/postMessage.js:49:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async module.exports (/opt/app/node_modules/semantic-release-slack-bot/lib/success.js:119:3)
at async validator (file:///opt/app/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
at async file:///opt/app/node_modules/semantic-release/lib/plugins/pipeline.js:37:34
at async Promise.all (index 0)
at async next (file:///opt/app/node_modules/p-reduce/index.js:15:44) {
code: 'SLACK CONNECTION FAILED',
details: undefined,
semanticRelease: true,
pluginName: 'semantic-release-slack-bot'
}
]
Most applications in our pipelines respect the https_proxy and no_proxy environment variables, but looking through the code and the use of node-fetch, there doesn't seem to be any checks to see if a proxy is configured. The result is that we cannot make the webhook call out to Slack.
I'm not a nodejs developer (or a developer at all in any real sense), but it seems as though Node is working to get proxies working with native fetch, but until then, people have implemented workarounds.
Ideally, the application should look for a https_proxy environment variable, and if it is set, to use that proxy to make the webhook call to Slack. We also use a no_proxy variable to identify internal hosts that should not use that proxy, but I do not that functionality is necessary since the webhook will always be a proxied call.
The text was updated successfully, but these errors were encountered:
We are running semantic-release on a private gitlab instance on our network, and all connections outside the network go through a corporate proxy. When we run with the webhook, we get the following error:
Most applications in our pipelines respect the
https_proxy
andno_proxy
environment variables, but looking through the code and the use ofnode-fetch
, there doesn't seem to be any checks to see if a proxy is configured. The result is that we cannot make the webhook call out to Slack.I'm not a nodejs developer (or a developer at all in any real sense), but it seems as though Node is working to get proxies working with native fetch, but until then, people have implemented workarounds.
Ideally, the application should look for a
https_proxy
environment variable, and if it is set, to use that proxy to make the webhook call to Slack. We also use ano_proxy
variable to identify internal hosts that should not use that proxy, but I do not that functionality is necessary since the webhook will always be a proxied call.The text was updated successfully, but these errors were encountered: