rauchg / slackin

Public Slack organizations made easy

Home Page:http://rauchg.com/slackin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku Deployment: missing_scope

gtallen1187 opened this issue · comments

The Heroku deployment builds perfectly and it looks as though it's going to work, however when a user enters their email and passes the recaptcha, once they click the "send invite" button they get a "missing scope" error:

image

Navigating to the /invite url shows the following error:

Cannot GET /invite

I am encountering this problem as well. If it matters, I set up my api token with a bot user's (which I gave admin privs) oath token.

In my logs I'm getting


2018-11-26T02:37:47.468451+00:00 app[web.1]: Mon Nov 26 2018 02:37:47 GMT+0000 (UTC) – Error: Too Many Requests
2018-11-26T02:37:47.468455+00:00 app[web.1]:     at Request.callback (/app/node_modules/superagent/lib/node/index.js:686:11)
2018-11-26T02:37:47.468457+00:00 app[web.1]:     at /app/node_modules/superagent/lib/node/index.js:868:18
2018-11-26T02:37:47.468459+00:00 app[web.1]:     at IncomingMessage.<anonymous> (/app/node_modules/superagent/lib/node/parsers/json.js:16:7)
2018-11-26T02:37:47.468461+00:00 app[web.1]:     at emitNone (events.js:91:20)
2018-11-26T02:37:47.468463+00:00 app[web.1]:     at IncomingMessage.emit (events.js:185:7)
2018-11-26T02:37:47.468464+00:00 app[web.1]:     at endReadableNT (_stream_readable.js:974:12)
2018-11-26T02:37:47.468466+00:00 app[web.1]:     at _combinedTickCallback (internal/process/next_tick.js:80:11)
2018-11-26T02:37:47.468467+00:00 app[web.1]:     at process._tickCallback (internal/process/next_tick.js:104:9)

Creating a legacy token fixed this issue. Perhaps this should be added to the documentation? Worrisome is that legacy tokens will at some point be deprecated, breaking all instances.

I share the same concern as @chao-mu - Would be good to see this resolved to support Slack Apps

@chao-mu - I'm planning to dig back into this over the weekend. Which legacy token fixed your issue? A legacy slack token? And any chance you can share a docs link for getting this legacy token?

It looks as though @twbs managed to get this up and running and is using it on their homepage as their default way to onboard new people into Slack. This workflow is awesome, I'd really love to replicate it for my projects.

@chao-mu and @chickendiver - If one of you wouldn't mind explaining to me which legacy token to use, I'd really appreciate it. As you can probably tell, I'm an extreme beginner, so any help would be greatly appreciated.

We are actually hitting this for months.