Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Rocket.Chat default port for a bot? #129

Open
mikebdp2 opened this issue Aug 17, 2020 · 0 comments
Open

Rocket.Chat default port for a bot? #129

mikebdp2 opened this issue Aug 17, 2020 · 0 comments

Comments

@mikebdp2
Copy link

I'm setting up a bot to connect to a server which doesn't belong to me
and this server is using the default settings for almost everything including ports.
Here's my current config:

...
func main() {
        config := &rocket.Config{
                Server:   "chat.server.com",
                Port:     "?????",
                User:     "test-1-bot",
                Email:    "[email protected]",
                Password: "********",
                UseTLS:   false,
                Debug:    os.Getenv("DEBUG") != "",
        }
        rocket.Run(config)
}

What is a default ROCKET_PORT value: 3000, 80 or 443 ?
I tried using them all, but am getting the following results:

3000: login err: Post http://chat.server.com:3000/api/v1/login: dial tcp ...*:3000: connect: connection refused
80: login err: Request error: 405 Method Not Allowed
443: login err: Request error: 400 Bad Request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant