slack icon indicating copy to clipboard operation
slack copied to clipboard

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

Open buren opened this issue 2 years ago • 25 comments

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):

  • OS: MacOS 11.0.1
  • Browser Chrome/Safari/Firefox (same result for each)

buren avatar Jul 14 '22 10:07 buren

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

pclinger avatar Aug 10 '22 18:08 pclinger

I have the same issue

fvoska avatar Aug 18 '22 12:08 fvoska

I have the same issue

Adrian62D avatar Aug 22 '22 09:08 Adrian62D

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.

hardyjohnson avatar Aug 23 '22 20:08 hardyjohnson

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!

buren avatar Aug 24 '22 04:08 buren

@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?

hardyjohnson avatar Aug 24 '22 04:08 hardyjohnson

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

Thank you!! 🌟

buren avatar Aug 24 '22 04:08 buren

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 avatar Aug 29 '22 13:08 julisch94

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"

julisch94 avatar Aug 29 '22 13:08 julisch94

@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

dannysauer avatar Sep 23 '22 21:09 dannysauer

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

SergioSG-PNXT avatar Oct 18 '22 09:10 SergioSG-PNXT

try /github signin

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

mculp avatar Nov 22 '22 22:11 mculp

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

Spelllman avatar Dec 06 '22 14:12 Spelllman

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

AroraShreshth avatar Jan 25 '23 12:01 AroraShreshth

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!

Mark-Gurevich avatar Jan 26 '23 16:01 Mark-Gurevich

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 😂

yesserrebai avatar Feb 08 '23 13:02 yesserrebai

@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 😄

priojeetpriyom avatar Mar 17 '23 08:03 priojeetpriyom

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

stevenh avatar May 12 '23 12:05 stevenh

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

adazzi-aurora avatar Jul 05 '23 20:07 adazzi-aurora

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

katherinelreyes avatar Jul 11 '23 16:07 katherinelreyes

try /github signin

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

Works like a charm!

MaxScripts-Technology avatar Dec 20 '23 08:12 MaxScripts-Technology

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.

muma378 avatar Dec 21 '23 05:12 muma378

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

MadinabonuAlisherova1 avatar Feb 12 '24 11:02 MadinabonuAlisherova1