integrations / slack

Bring your code to the conversations you care about with GitHub's integration for Slack
https://slack.github.com/
MIT License
3.12k stars 490 forks source link

Error: The time window to connect your GitHub account has expired #1429

Open buren opened 2 years ago

buren commented 2 years ago

Describe the bug After installing the Slack GitHub integration and clicking "Connect GitHub account" button in Slack, I'm getting the error 👇 Error: The time window to connect your GitHub account has expired. Please return to Slack to re-start the process of connecting your GitHub account.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://slack.github.com/slack/v2/oauth/login
  2. Click on 'Allow'
  3. Open the link in Slack (or browser it doesn't matter)
  4. In GitHub Slack apps "Message" click the button "Connect GitHub account" (see below screenshot)
  5. A new browser windows is opened where the error message 👇 is displayed
    Error: The time window to connect your GitHub account has expired. Please return to Slack to re-start the process of connecting your GitHub account.

    I've tried multiple times adding and removing the GitHub Slack app and tried to open the link in an incognito window, but still getting the same result.

Expected behavior Connecting my GitHub account.

Screenshots

Screen Shot 2022-07-14 at 11 28 53 Screen Shot 2022-07-14 at 11 32 12

Desktop (please complete the following information):

pclinger commented 2 years ago

I am getting this same error. Reproduction steps:

  1. Open Slack
  2. Click "Add apps" in the left sidebar
  3. Select GitHub
  4. Click "Connect GitHub account"
  5. Browser opens and displays the same error
image
fvoska commented 2 years ago

I have the same issue

Adrian62D commented 2 years ago

I have the same issue

hardyjohnson commented 2 years ago

Note steps for resolving this issue:

  1. Login to Slack via website
  2. Go to the app directory page for GitHub
  3. Click on configuration
  4. Click the show all authorized members button
  5. Revoke the incomplete authorization
  6. Re-add the app integration which will direct you through the authorization flow

I rate this as a poor experience which could be improved with better messaging / a link to the steps to resolve as a help KB article.

buren commented 2 years ago

Thank you @hardyjohnson. I followed these steps unfortunately I get the same result 😞 I get redirected to Slack, but get to the same direct message "conversation" with the GitHub app and no new authorization link/button appears. The only one that exists is the old one that was posted in that "conversation" and that still opens a page with the below error 👇

Error: The time window to connect your GitHub account has expired. Please return to Slack to re-start the process of connecting your GitHub account.

As you can see I've tried quite a few times 😅

screenshot

Hopefully it helps for others!

Thanks!

hardyjohnson commented 2 years ago

@buren it looks like you have successfully installed the GitHub integration.

If you go to a channel now and use the github slash command /github subscribe organization/repository what happens?

buren commented 2 years ago

@hardyjohnson worked like a charm! 🙌 It got the GitHub app to post an message with a button "Install GitHub App", clicked and 🎉

Thank you!! 🌟

julisch94 commented 2 years ago

I have the same issue.

The proposed fix won't work for me cause it seems I don't have permissions to revoke authorizations in the workspace.

julisch94 commented 2 years ago

In fact, instead of adding GitHub in Slack, I was able to authorize Slack on GitHub side. By going to:

GitHub > Settings > Scheduled Reminders > Choose your org > Click "Authorize Slack workspace"

dannysauer commented 2 years ago

@julisch94 OMG. So, that resolved a couple months of frustration for me. And now that frustration is replaced with rage that the answer is buried in an issue deep within a github project instead of the stupid integration just generating a new request. :D

SergioSG-PNXT commented 2 years ago

same problem here and can't fix using this method: GitHub > Settings > Scheduled Reminders > Choose your org > Click "Authorize Slack workspace"

mculp commented 2 years ago

try /github signin

it's not well-documented, but it worked for me

Spelllman commented 1 year ago

Thank you so much, all the other solutions didn't work for me but using this command did.

AroraShreshth commented 1 year ago

/github signin worked for me too. Thanks a lot @mculp. no other no other solution worked for me.

Mark-Gurevich commented 1 year ago

In fact, instead of adding GitHub in Slack, I was able to authorize Slack on GitHub side. By going to:

GitHub > Settings > Scheduled Reminders > Choose your org > Click "Authorize Slack workspace"

This solution worked for me! Thank you very much!

yesserrebai commented 1 year ago

In fact, instead of adding GitHub in Slack, I was able to authorize Slack on GitHub side. By going to:

GitHub > Settings > Scheduled Reminders > Choose your org > Click "Authorize Slack workspace"

Guys stop scrolling and follow these 😂

priojeetpriyom commented 1 year ago

@buren it looks like you have successfully installed the GitHub integration.

If you go to a channel now and use the github slash command /github subscribe organization/repository what happens?

This solution worked for me! what I did was - executed /github subscribe in the github channel of slack which gave me a new button to connect to github. Once I clicked that button, I got the verification code 😄

stevenh commented 1 year ago

Instructions to run /github signin should be added to the error message, to avoid people having to dig around for the solution.

adazzi-aurora commented 1 year ago

just tried /github signin and that worked for me as well.

katherinelreyes commented 1 year ago

/github signin worked for me as well! Thank you!

MaxScripts-Technology commented 11 months ago

try /github signin

it's not well-documented, but it worked for me

Works like a charm!

muma378 commented 11 months ago

In fact, instead of adding GitHub in Slack, I was able to authorize Slack on GitHub side. By going to:

GitHub > Settings > Scheduled Reminders > Choose your org > Click "Authorize Slack workspace"

It works only if you subscribed an owned Org/Repo. In another word, you need to make sure you are the member of the org to subscribe meanwhile slack is installed in the Org.

MadinabonuAlisherova1 commented 9 months ago

/github signin worked for me as well! Thank you so much!

anilrajrimal1 commented 3 months ago

This /github signin method worked for me Thank you 😊

jhitchings-vq commented 1 month ago

/github signin is the way