I have seen a few issues posted which greatly describe this issue. Some say they were fixed and some just end. I have a private repository to which I would like to connect Slack. When I issue the command /github signin I get the indicator to connect via OAuth:

I do so and hit the right page I assume:

When I press the "Connect to GitHub account" button (I am already signed in) I get the following error on an otherwise blank page:
An unexpected error occured. ref: d0afd718fd6b415c960501d43006d513
Aside from the typo, I'm obviously not getting anything that tells me what's going wrong. OAuth seems pretty straightforward so I'm not sure what I could be doing.
Thanks for opening this issue! If you would like to help implement an improvement, read more about contributing and consider submitting a pull request.
Same for me. I have already connected two private repos in one slack channel, but when I try to connect another private repo to another channel I can't.

I had an email thread going with GitHub support and I got this resolved, In my case, I issued the command /github signin which succeeded and then I was able to /github subscribe owner/repository.
just FYI this no longer works since /github signin is not a command anymore
Most helpful comment
just FYI this no longer works since
/github signinis not a command anymore