-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Throws a Runtime Error if team is already regstered. #139
Comments
I think you could just implement the re-install workflow and succeed in that case instead of raising an error? |
I've to re implement the whole teams_endpoint or have to maintain two redirect URLs? Not sure if it is ideal, I am wondering what that exception's purpose is? Because we would want new tokens to be updated in Teams model in case user re-installs? |
You definitely don't want to reimplement the endpoint and maintain 2 URLs, just get rid of the exception. But you can't remove it, its original intent is to avoid calling All of this needs to be tested and confirmed. |
So the activate is only used for RTM, If I am not using RTM I can just get rid of |
In your own code I think it's safe to just remove both the exception and |
okay thank you for the response, I'll look into the code, find a way to reopen the connection and create a PR. |
02:09:59 web.1 | E, [2021-05-30T02:09:59.774355 #15140] ERROR -- : RuntimeError: Team Enlite is already registered. 02:09:59 web.1 | F:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/slack-ruby-bot-server-1.2.0/lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb:95:in 'block (2 levels) in <class:TeamsEndpoint>'
If I want to let users re install the app with custom parameter, it can't handle that, the flow just crashes.
slack-ruby-bot-server/lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb
Line 95 in 99e91ed
instance.on :error
.The text was updated successfully, but these errors were encountered: