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

Not getting invites #15

Closed
bdougie opened this issue Feb 11, 2015 · 38 comments
Closed

Not getting invites #15

bdougie opened this issue Feb 11, 2015 · 38 comments

Comments

@bdougie
Copy link

bdougie commented Feb 11, 2015

I set up and successfully deployed to Heroku using the link via the README. I even accounted for the issue #11. However when I test the landing page with an email, none is sent.

Is there something else others have done to get a response?

Heroku logs:

2015-02-11T10:24:19.975754+00:00 app[web.1]: Wed Feb 11 2015 10:24:19 GMT+0000 (UTC)  fetching
2015-02-11T10:24:20.145465+00:00 app[web.1]: Wed Feb 11 2015 10:24:20 GMT+0000 (UTC)  online 5, total 52 (+170ms)
2015-02-11T10:24:21.146938+00:00 app[web.1]: Wed Feb 11 2015 10:24:21 GMT+0000 (UTC)  fetching
2015-02-11T10:24:21.303834+00:00 app[web.1]: Wed Feb 11 2015 10:24:21 GMT+0000 (UTC)  online 5, total 52 (+157ms)
2015-02-11T10:24:22.305397+00:00 app[web.1]: Wed Feb 11 2015 10:24:22 GMT+0000 (UTC)  fetching
2015-02-11T10:24:22.485901+00:00 app[web.1]: Wed Feb 11 2015 10:24:22 GMT+0000 (UTC)  online 5, total 52 (+180ms)
2015-02-11T10:24:23.488368+00:00 app[web.1]: Wed Feb 11 2015 10:24:23 GMT+0000 (UTC)  fetching
2015-02-11T10:24:23.658190+00:00 app[web.1]: Wed Feb 11 2015 10:24:23 GMT+0000 (UTC)  online 5, total 52 (+169ms)
2015-02-11T10:24:24.659772+00:00 app[web.1]: Wed Feb 11 2015 10:24:24 GMT+0000 (UTC)  fetching
2015-02-11T10:24:24.928736+00:00 app[web.1]: Wed Feb 11 2015 10:24:24 GMT+0000 (UTC)  online 5, total 52 (+269ms)
2015-02-11T10:24:25.931078+00:00 app[web.1]: Wed Feb 11 2015 10:24:25 GMT+0000 (UTC)  fetching
2015-02-11T10:24:29.932759+00:00 app[web.1]: Wed Feb 11 2015 10:24:29 GMT+0000 (UTC)  online 5, total 52 (+4002ms)
2015-02-11T10:24:30.941297+00:00 app[web.1]: Wed Feb 11 2015 10:24:30 GMT+0000 (UTC)  fetching
2015-02-11T10:24:31.152618+00:00 app[web.1]: Wed Feb 11 2015 10:24:31 GMT+0000 (UTC)  online 5, total 52 (+211ms)
2015-02-11T10:24:32.162730+00:00 app[web.1]: Wed Feb 11 2015 10:24:32 GMT+0000 (UTC)  fetching
2015-02-11T10:24:32.330541+00:00 app[web.1]: Wed Feb 11 2015 10:24:32 GMT+0000 (UTC)  online 5, total 52 (+168ms)
2015-02-11T10:24:33.332090+00:00 app[web.1]: Wed Feb 11 2015 10:24:33 GMT+0000 (UTC)  fetching
2015-02-11T10:24:33.519315+00:00 app[web.1]: Wed Feb 11 2015 10:24:33 GMT+0000 (UTC)  online 5, total 52 (+188ms)
2015-02-11T10:24:34.520937+00:00 app[web.1]: Wed Feb 11 2015 10:24:34 GMT+0000 (UTC)  fetching
2015-02-11T10:24:34.682489+00:00 app[web.1]: Wed Feb 11 2015 10:24:34 GMT+0000 (UTC)  online 5, total 52 (+162ms)
2015-02-11T10:24:35.682969+00:00 app[web.1]: Wed Feb 11 2015 10:24:35 GMT+0000 (UTC)  fetching
2015-02-11T10:24:35.861516+00:00 app[web.1]: Wed Feb 11 2015 10:24:35 GMT+0000 (UTC)  online 5, total 52 (+179ms)
2015-02-11T10:24:36.862752+00:00 app[web.1]: Wed Feb 11 2015 10:24:36 GMT+0000 (UTC)  fetching
2015-02-11T10:24:37.127527+00:00 app[web.1]: Wed Feb 11 2015 10:24:37 GMT+0000 (UTC)  online 5, total 52 (+265ms)
2015-02-11T10:24:38.129095+00:00 app[web.1]: Wed Feb 11 2015 10:24:38 GMT+0000 (UTC)  fetching
2015-02-11T10:24:38.421819+00:00 app[web.1]: Wed Feb 11 2015 10:24:38 GMT+0000 (UTC)  online 5, total 52 (+293ms)
2015-02-11T10:24:39.424489+00:00 app[web.1]: Wed Feb 11 2015 10:24:39 GMT+0000 (UTC)  fetching
2015-02-11T10:24:39.593630+00:00 app[web.1]: Wed Feb 11 2015 10:24:39 GMT+0000 (UTC)  online 5, total 52 (+169ms)
2015-02-11T10:24:40.594730+00:00 app[web.1]: Wed Feb 11 2015 10:24:40 GMT+0000 (UTC)  fetching
2015-02-11T10:24:40.851706+00:00 app[web.1]: Wed Feb 11 2015 10:24:40 GMT+0000 (UTC)  online 5, total 52 (+257ms)
2015-02-11T10:24:41.853813+00:00 app[web.1]: Wed Feb 11 2015 10:24:41 GMT+0000 (UTC)  fetching
2015-02-11T10:24:42.141332+00:00 app[web.1]: Wed Feb 11 2015 10:24:42 GMT+0000 (UTC)  online 5, total 52 (+288ms)
2015-02-11T10:24:43.143348+00:00 app[web.1]: Wed Feb 11 2015 10:24:43 GMT+0000 (UTC)  fetching
2015-02-11T10:24:43.410473+00:00 app[web.1]: Wed Feb 11 2015 10:24:43 GMT+0000 (UTC)  online 5, total 52 (+267ms)
2015-02-11T10:24:44.411609+00:00 app[web.1]: Wed Feb 11 2015 10:24:44 GMT+0000 (UTC)  fetching
2015-02-11T10:24:44.665309+00:00 app[web.1]: Wed Feb 11 2015 10:24:44 GMT+0000 (UTC)  online 5, total 52 (+254ms)
2015-02-11T10:24:45.667205+00:00 app[web.1]: Wed Feb 11 2015 10:24:45 GMT+0000 (UTC)  fetching
2015-02-11T10:24:45.938724+00:00 app[web.1]: Wed Feb 11 2015 10:24:45 GMT+0000 (UTC)  online 5, total 52 (+271ms)
2015-02-11T10:24:46.939923+00:00 app[web.1]: Wed Feb 11 2015 10:24:46 GMT+0000 (UTC)  fetching
2015-02-11T10:24:47.103133+00:00 app[web.1]: Wed Feb 11 2015 10:24:47 GMT+0000 (UTC)  online 5, total 52 (+163ms)
2015-02-11T10:24:48.104902+00:00 app[web.1]: Wed Feb 11 2015 10:24:48 GMT+0000 (UTC)  fetching
2015-02-11T10:24:48.370181+00:00 app[web.1]: Wed Feb 11 2015 10:24:48 GMT+0000 (UTC)  online 5, total 52 (+266ms)
2015-02-11T10:24:49.372348+00:00 app[web.1]: Wed Feb 11 2015 10:24:49 GMT+0000 (UTC)  fetching
2015-02-11T10:24:49.626760+00:00 app[web.1]: Wed Feb 11 2015 10:24:49 GMT+0000 (UTC)  online 5, total 52 (+254ms)
2015-02-11T10:24:50.628973+00:00 app[web.1]: Wed Feb 11 2015 10:24:50 GMT+0000 (UTC)  fetching
2015-02-11T10:24:50.882872+00:00 app[web.1]: Wed Feb 11 2015 10:24:50 GMT+0000 (UTC)  online 5, total 52 (+254ms)
2015-02-11T10:24:51.884993+00:00 app[web.1]: Wed Feb 11 2015 10:24:51 GMT+0000 (UTC)  fetching
2015-02-11T10:24:52.141961+00:00 app[web.1]: Wed Feb 11 2015 10:24:52 GMT+0000 (UTC)  online 5, total 52 (+257ms)
2015-02-11T10:24:53.144203+00:00 app[web.1]: Wed Feb 11 2015 10:24:53 GMT+0000 (UTC)  fetching
2015-02-11T10:24:53.305251+00:00 app[web.1]: Wed Feb 11 2015 10:24:53 GMT+0000 (UTC)  online 5, total 52 (+161ms)
2015-02-11T10:24:54.307368+00:00 app[web.1]: Wed Feb 11 2015 10:24:54 GMT+0000 (UTC)  fetching
2015-02-11T10:24:54.492582+00:00 app[web.1]: Wed Feb 11 2015 10:24:54 GMT+0000 (UTC)  online 5, total 52 (+185ms)
2015-02-11T10:24:55.493674+00:00 app[web.1]: Wed Feb 11 2015 10:24:55 GMT+0000 (UTC)  fetching
2015-02-11T10:24:55.664586+00:00 app[web.1]: Wed Feb 11 2015 10:24:55 GMT+0000 (UTC)  online 5, total 52 (+171ms)
2015-02-11T10:24:56.665823+00:00 app[web.1]: Wed Feb 11 2015 10:24:56 GMT+0000 (UTC)  fetching
2015-02-11T10:24:56.926372+00:00 app[web.1]: Wed Feb 11 2015 10:24:56 GMT+0000 (UTC)  online 5, total 52 (+261ms)
2015-02-11T10:24:57.928192+00:00 app[web.1]: Wed Feb 11 2015 10:24:57 GMT+0000 (UTC)  fetching
2015-02-11T10:24:58.096278+00:00 app[web.1]: Wed Feb 11 2015 10:24:58 GMT+0000 (UTC)  online 5, total 52 (+168ms)
2015-02-11T10:24:59.097533+00:00 app[web.1]: Wed Feb 11 2015 10:24:59 GMT+0000 (UTC)  fetching
2015-02-11T10:24:59.365226+00:00 app[web.1]: Wed Feb 11 2015 10:24:59 GMT+0000 (UTC)  online 5, total 52 (+268ms)
2015-02-11T10:25:00.367286+00:00 app[web.1]: Wed Feb 11 2015 10:25:00 GMT+0000 (UTC)  fetching
2015-02-11T10:25:00.527206+00:00 app[web.1]: Wed Feb 11 2015 10:25:00 GMT+0000 (UTC)  online 5, total 52 (+160ms)
@dherbst
Copy link

dherbst commented Feb 11, 2015

Check the error from users.admin.invite you probably see {error=paid_only, ok=false} It looks like they recently made a change so you have to have a paid account to use this api function. Not sure if it works for a bot account if you upgrade your script to a bot.

@bdougie
Copy link
Author

bdougie commented Feb 11, 2015

😞 Thats unfortunate that they changed it. Are you referring to inviting bots or using a bot to invite.

I also dont see an error.

@dherbst
Copy link

dherbst commented Feb 11, 2015

Bot users - https://api.slack.com/bot-users

@rauchg
Copy link
Owner

rauchg commented Feb 12, 2015

I fixed this for socket.io by reconfiguring it to use my personal token.

@rauchg
Copy link
Owner

rauchg commented Feb 12, 2015

(probably not the best idea? I'm gonna email Slack)

@xeodou
Copy link

xeodou commented Feb 12, 2015

I have made a change here #14 , and it works for me. The restricted property is for paid user only.

@xeodou
Copy link

xeodou commented Feb 12, 2015

#14 works very last few days. And doesn't work this morning. Maybe slack block this from free groups.

@bdougie
Copy link
Author

bdougie commented Feb 12, 2015

FYI levels.io confirmed on twitter that slack killed that portion of the api. Which confirms what @dherbst mentioned in the first comment

@rauchg
Copy link
Owner

rauchg commented Feb 12, 2015

It still works with user tokens. But not sure if we're violating their TOS.

@xeodou
Copy link

xeodou commented Feb 13, 2015

@brianllamar I have retweet , and i'm very sad slack.com blocked this api.

@llimllib
Copy link

Here's a very simple test script:

#!/usr/bin/env python
import requests

API_BASE_URL = 'https://slack.com/api/{method}?token={token}'
TOKEN = '<your_token>'
GENERAL_ROOM_ID = "<your_room_id>"

def call(method, **params):
    url = API_BASE_URL.format(method=method, token=TOKEN)
    return requests.get(url, params=params)

if __name__ == "__main__":
    res = call("users.admin.invite", email="<your_email>", set_active="true",
               channels=GENERAL_ROOM_ID, first_name="Bob")
    print(res)
    print(res.json())

Which prints:

$ python invite.py
<Response [200]>
{u'ok': False, u'error': u'paid_only'}

^^^ that's what I get with a user token, btw, not a bot token.

@makenai
Copy link

makenai commented Feb 18, 2015

This started working for me again today.

@rauchg
Copy link
Owner

rauchg commented Feb 19, 2015

woohoo! Thanks for letting everyone know. Is this with an org token?

@bmann
Copy link

bmann commented Feb 19, 2015

Same. Didn't change anything, still using the org token. Did tweet at Slack a while back pointing them at this :)

@makenai
Copy link

makenai commented Feb 19, 2015

Yup, org token. I was going to hack it up to just dump an invite request in
the channel on failure, but I wasn’t getting the expected failure.

On Wed, Feb 18, 2015 at 4:05 PM, Guillermo Rauch notifications@github.com
wrote:

woohoo! Thanks for letting everyone know. Is this with an org token?


Reply to this email directly or view it on GitHub
#15 (comment).

@rauchg
Copy link
Owner

rauchg commented Feb 19, 2015

wow-hoo. Thanks guys for reporting. I'll revert my README.md change.

@rauchg rauchg closed this as completed Feb 19, 2015
@llimllib
Copy link

Slackin has started working for me! Sweet.

(Although, oddly, my test script still returns paid users only)

@nealrs
Copy link

nealrs commented Feb 19, 2015

Best news ever.
On Feb 18, 2015 7:16 PM, "Guillermo Rauch" notifications@github.com wrote:

Closed #15 #15.


Reply to this email directly or view it on GitHub
#15 (comment).

@meatballhat
Copy link

And now it's not working again? 😃 Anybody else? API reports success. No invite created.

@llimllib
Copy link

llimllib commented Mar 6, 2015

Somebody used it succesfully to join my group an hour ago

@meatballhat
Copy link

@llimllib I'm at a loss. The org is paid. API reports success. I don't want to clutter this issue, especially if it's user error (likely).

@rauchg
Copy link
Owner

rauchg commented Mar 6, 2015

Works great for me.

@meatballhat
Copy link

@rauchg Thanks so much for this project! I don't mean to sound ungrateful.

@rauchg
Copy link
Owner

rauchg commented Mar 6, 2015

No problem at all. In fact there's a chance that there's still something
wrong with slackin… just pointing out it works for me.

What do the logs say ?
On Fri, Mar 6, 2015 at 9:02 AM Dan Buch notifications@github.com wrote:

@rauchg https://github.com/rauchg Thanks so much for this project! I
don't mean to sound ungrateful.


Reply to this email directly or view it on GitHub
#15 (comment).

@meatballhat
Copy link

@rauchg more details:

2015-03-06T16:37:44.005011+00:00 heroku[router]: at=info method=POST path="/invite" host=travis-lounge-signup.herokuapp.com request_id=9e6dee46-77c3-4776-aa9a-bea4d61b1f30 fwd="71.182.205.38" dyno=web.1 connect=1ms service=78ms status=200 bytes=131
2015-03-06T16:37:44.005555+00:00 app[web.1]: Invite response: 200

An invite is not created under the given org, and no email is sent.
I can add more logging or whatever you think is appropriate 😃

@rauchg
Copy link
Owner

rauchg commented Mar 6, 2015

Can you please test 0.3.0 to see if it fixes the first two points ?
Have you checked spam :D ?

@meatballhat
Copy link

@rauchg Yep nothing in spam 😃 I'm trying to get 0.3.0 happy on heroku. Are you using a custom bulidpack or some such to get the ./node dir built? Committing the generated files? Other?

@meatballhat
Copy link

I hacked the Procfile like so: https://gist.github.com/meatballhat/05fd71dbd2c1a791093a#file-procfile-hack-patch

Server runs now, but no change in invitation behavior 😕

2015-03-06T18:36:45.285201+00:00 heroku[router]: at=info method=POST path="/invite" host=travis-lounge-signup.herokuapp.com request_id=8a1228bc-26c7-4daf-9a16-e887196e109a fwd="71.182.205.38" dyno=web.1 connect=1ms service=91ms status=200 bytes=131

@meatballhat
Copy link

I made a few more hacks to have the request made the same way as https://github.com/tech404/inviter/blob/81dd14014fb7657339dd1aa87d97e09dd4f82fd9/lib/slack/client.rb#L15-L21 and everything appears to be working for me. I'll gladly work up a PR if there's interest 😃

@rauchg
Copy link
Owner

rauchg commented Mar 6, 2015

Please! Thanks for following-up

@SachaG
Copy link

SachaG commented Mar 16, 2015

I've tested Slackin both locally on and Heroku and in either case I'm not receiving any invites. I'm not sure if this is the same issue, the Slackin logs don't say anything at all besides the fetching/online X logs.

@SachaG
Copy link

SachaG commented Mar 16, 2015

Actually my bad, it does work locally, just takes ~10 minutes for the invite to arrive. Still doesn't work on Heroku as far as I can tell though.

@mottosso
Copy link

I got to this issue from here and got my first invite without a hitch.

@masterkrang
Copy link

is this still an issue? if it is, why is it closed? thanks!

@dKab
Copy link

dKab commented Sep 25, 2016

So is this project usefull for free plan teams or it won't work?

@elimisteve
Copy link

@dKab Get an answer, or try it for yourself?

@elimisteve
Copy link

@masterkrang Get an answer, or try it for yourself?

@dKab
Copy link

dKab commented Oct 1, 2016

Works for me.

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