Skip to content
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

Custom Port Ignored when Using Socket Mode #1179

Closed
5 of 10 tasks
M1kep opened this issue Oct 28, 2021 · 3 comments · Fixed by #1184
Closed
5 of 10 tasks

Custom Port Ignored when Using Socket Mode #1179

M1kep opened this issue Oct 28, 2021 · 3 comments · Fixed by #1184
Assignees
Labels
enhancement M-T: A feature request for new functionality
Milestone

Comments

@M1kep
Copy link
Contributor

M1kep commented Oct 28, 2021

Description

I'm attempting to utilize the custom HTTP routes feature in an application that hosts multiple Slack Bots. For this, I'm attempting to configure the receiver to listen on a specific port for each bot. There are a few issues I'm running into:

  1. The SocketModeReceivers start method does not accept a port at all
  2. When the App constructor is called, the InstallerOptions are passed to the SocketModeReciver constructor. The problem I run into is that the InstallerOptions being accepted by the App constructor are HTTPReceiverOptions['installerOptions'] which do not contain a Port property. The port property is then used in the SocketModeReceiver constructor to determine what port to listen on.

I'm not really sure what the best method to achieve this would be

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.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

package version:3.7.0

node version: v16.9.1

Typescript Version: 4.4.3

OS version(s): macOS Monterey - 12.0.1 (21A559)

@srajiang srajiang added the enhancement M-T: A feature request for new functionality label Oct 28, 2021
@M1kep
Copy link
Contributor Author

M1kep commented Oct 28, 2021

This also breaks using more than one SocketMode App with the CustomRoutes property with the below error:

Error: listen EADDRINUSE: address already in use :::3000

@srajiang
Copy link
Member

srajiang commented Oct 28, 2021

Hi @M1kep - Thanks for surfacing this issue. Going to open a separate issue now for getting the port option added to the HTTPReceiverOptions in the next release v3.8

Will respond to #1180 in the thread - that is the workaround that we recommend, but I can see that you are having issues (and I can replicate them).

@seratch
Copy link
Member

seratch commented Oct 29, 2021

This issue will be fixed by #1184

@seratch seratch self-assigned this Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement M-T: A feature request for new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants