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

Configure & Test Rocket.chat SlackBridge (integraton to mirror slack channels on Rocket.Chat) #26

Open
fititnt opened this issue Feb 3, 2018 · 5 comments

Comments

@fititnt
Copy link
Owner

fititnt commented Feb 3, 2018

@fititnt
Copy link
Owner Author

fititnt commented Feb 3, 2018

@fititnt
Copy link
Owner Author

fititnt commented Feb 3, 2018

humm

rocketchat_1          | rocketchat_logger rocketchat_logger.js:278 SlackBridge ➔ Class.error Error attempting to connect to Slack { Error: tunneling socket could not be established, cause=unable to verify the first certificate
rocketchat_1          |   at ClientRequest.onError (/app/bundle/programs/server/npm/node_modules/meteor/http/node_modules/tunnel-agent/index.js:176:17)
rocketchat_1          |   at Object.onceWrapper (events.js:315:30)
rocketchat_1          |   at emitOne (events.js:116:13)
rocketchat_1          |   at ClientRequest.emit (events.js:211:7)
rocketchat_1          |   at TLSSocket.socketErrorListener (_http_client.js:387:9)
rocketchat_1          |   at emitOne (events.js:116:13)
rocketchat_1          |   at TLSSocket.emit (events.js:211:7)
rocketchat_1          |   at emitErrorNT (internal/streams/destroy.js:64:8)
rocketchat_1          |   at _combinedTickCallback (internal/process/next_tick.js:138:11)
rocketchat_1          |   at process._tickDomainCallback (internal/process/next_tick.js:218:9)
rocketchat_1          |  code: 'ECONNRESET' }

@fititnt
Copy link
Owner Author

fititnt commented Feb 3, 2018

https://github.com/request/tunnel-agent/blob/eb2b1b19e09ee0e6a2b54eb2612755731b7301dc/index.js#L176

  function onError(cause) {
    connectReq.removeAllListeners()

    debug('tunneling socket could not be established, cause=%s\n', cause.message, cause.stack)
    var error = new Error('tunneling socket could not be established, ' + 'cause=' + cause.message)
    error.code = 'ECONNRESET'
    options.request.emit('error', error)
    self.removeSocket(placeholder)
  }

@fititnt
Copy link
Owner Author

fititnt commented Feb 3, 2018

I tried to disable valid SSL checking, and it still persists.

captura de tela de 2018-02-03 21-33-56

Tried with SlackBridge Out disabled. No change.

captura de tela de 2018-02-03 21-52-23

Due to the error message and the lack of complaint from other people, it must be some error on our server. I think I'll retry at another time or ask someone else on our group to test.

@fititnt
Copy link
Owner Author

fititnt commented Feb 4, 2018

Humm, our container cannot curl -v https://slack.com/api.

root@chatopswg:~# docker exec -it rocketchat_rocketchat_1 bash
rocketchat@e2ded707228a:/app/bundle$ curl -v https://slack.com/api
* Hostname was NOT found in DNS cache
*   Trying 45.55.32.60...
* connect to 45.55.32.60 port 1080 failed: Connection refused
* Failed to connect to rocketchat.chatopswg.xyz port 1080: Connection refused
* Closing connection 0
curl: (7) Failed to connect to rocketchat.chatopswg.xyz port 1080: Connection refused

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

No branches or pull requests

1 participant