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

Creating url:undefined TypeError: Cannot read property 'protocol' of undefined #7

Open
dendisuhubdy opened this issue Feb 5, 2017 · 1 comment

Comments

@dendisuhubdy
Copy link

Creating url:undefined

TypeError: Cannot read property 'protocol' of undefined
    at WebSocketClient.connect (/root/node_modules/websocket/lib/WebSocketClient.js:137:18)
    at createWS (/root/SlackLateX/bot.js:55:12)
    at Request._callback (/root/SlackLateX/bot.js:23:13)
    at Request.self.callback (/root/node_modules/request/request.js:186:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/root/node_modules/request/request.js:1081:10)
    at Request.EventEmitter.emit (events.js:95:17)
    at IncomingMessage.<anonymous> (/root/node_modules/request/request.js:1001:12)
    at IncomingMessage.g (events.js:180:16)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)

@sand500
Copy link
Owner

sand500 commented Feb 11, 2017

You need to make a file called secret.txt and put either the api token from the bots integration or your own token from
https://api.slack.com/docs/oauth-test-tokens

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

No branches or pull requests

2 participants