rauchg / slackin

Public Slack organizations made easy
http://rauchg.com/slackin/
MIT License
6.5k stars 1.35k forks source link

Can't deploy: Error ENOTFOUND #376

Closed serranoarevalo closed 9 months ago

serranoarevalo commented 5 years ago

Can't deploy this.

I get a cryptic error message saying:

Sun Jul 15 2018 22:19:18 GMT+0000 (UTC) – fetching
> [0] events.js:183
> [0]       throw er; // Unhandled 'error' event
> [0]       ^
> [0]
> [0] Error: getaddrinfo ENOTFOUND HB1iBOkiV3PKDlmNp2ip5eS1

How to fix this?

Thanks a lot!

dmoskovtsov commented 5 years ago

HI. I'm having the same issue. Did anyone manage to resolve it?

serranoarevalo commented 5 years ago

Hi, I did, I had to manually modify the code, I changed bin/slackin to bin/slacking.js, I changed the start scripts on package.json to

"scripts": {
    "start": "cd bin && node slackin"
  }

I removed the post-install and build commands because for some reason they were executed on the server but the start command will never be called so I had to remove them.

Before you upload make sure that you have built the code (running gulp) and don't forget to include the 'dist' folder on the now.sh, files since there is no more 'build' command anymore.

"now": {
    "type": "npm",
    "files": [
      "bin",
      "lib",
      "dist",
      "gulpfile.babel.js"
    ],
kawallis commented 5 years ago

I'm still getting same issue even after following above any other solutions ?

serranoarevalo commented 5 years ago

I forgot to meantion that i deleted everything on the slackin.js and only left:

slackin(flags).listen(port, hostname, function(err) {
  if (err) throw err;
  if (!flags.silent)
    console.log("%s – listening on %s:%d", new Date(), hostname, port);
});

Of course I added the keys into the flags object.

kawallis commented 5 years ago

I ended up just deploying it to heroku instead and worked out as normal thanks for your help!

allmarkedup commented 5 years ago

I'm having this same issue. I've previously deployed it on Now with no problems but something must have changed since then. If anyone else has ideas on how to get it working again it'd be much appreciated!