huly-selfhost icon indicating copy to clipboard operation
huly-selfhost copied to clipboard

Page not found for Github Integration.

Open ChetSocio opened this issue 5 months ago • 7 comments

Hello Huly team,

I am facing strange issue where github connection works almost fine but an error appears and i cannot connect github to my self hosted instance (uses traefik example). These are environment variables used:

GITHUB_URL=https://myprojects.com/github
GITHUB_APP=MyProjects
GITHUB_CLIENT_ID=<client-id-here>
GITHUB_CLIENTID=<client-id-here>
GITHUB_CLIENT_SECRET=<client-secret-here>
GITHUB_REDIRECT_URI=https://myprojects.com/auth/github/callback

After redirecting back to my site, i get:

{"level":"info","message":"::ffff:172.19.0.2 - GET /github?code=<code>&state=<long-state-3-line-token> HTTP/1.1 200 418 - 1.622 ms\n","name":"requests","timestamp":"2025-08-31T19:40:11.728Z"}
{"level":"info","message":"::ffff:172.19.0.2 - GET /config.json HTTP/1.1 200 1071 - 0.514 ms\n","name":"requests","timestamp":"2025-08-31T19:40:11.886Z"}
{"level":"info","message":"::ffff:172.19.0.2 - POST /github/api/v1/auth HTTP/1.1 404 158 - 0.365 ms\n","name":"requests","timestamp":"2025-08-31T19:40:12.013Z"}

This is the log that shows what exactly happens when i try to connect github from settings -> integrations -> Github Integration -> Add -> Authorize Github App, I get redirected to github asking for permission to connect, and then get redirected back to instance's "Processing complete, redirecting in 3,21, seconds" and page closes but no changes in github integration page. Even after reload no chages.

ChetSocio avatar Aug 31 '25 19:08 ChetSocio

Connected to Huly®: SELFH-197

Image

I have the same problem, have you solved it? @ChetSocio

ahrulsyamil avatar Oct 23 '25 18:10 ahrulsyamil

I thinkered a bit to see if there was a workaround as I was curious on trying this app at home to see if it would be a good match at our company :

I believe I fixed it by doing so : Once on the processing complete tab, go to your console and run

window.close = function() {
  console.warn("window.close() blocked");
};

Copy the body of the post request and instead post it using Postman/Insomnia at the github service localhost:3500/api/v1/auth

Although if you ask me, ditch this projet. 2 months to fix such a simple issue will not be worth it for me, is that what we should expect with their cloud service? Disappointed.

JustSxm avatar Oct 27 '25 04:10 JustSxm

Then for the next step, you need to change in the url on github your the id after /apps/ to the name you gave it (e.g huly-self-hosted)

Finally repeat the same thing to prevent closing and posting to localhost:3500/api/v1/installation.

JustSxm avatar Oct 27 '25 04:10 JustSxm

I cant even get it to process.

  1. https://my-huly.tld/workbench/my-workbench/setting/integrations
  2. Click the "Connect" for GitHub
  3. Click the "Authorize Platform GitHub App"
  4. This leads to a url like https://github.com/login/oauth/authorize?client_id=&login=&state=random-large-string-here&allow_signup=true

So I cant even get to that spot. I dont think there are any "variables" to add anywhere, this doc does not mention anything such: https://docs.huly.io/integrations/github/

smileBeda avatar Oct 28 '25 20:10 smileBeda

After that you authorize in github, my steps start after that

JustSxm avatar Oct 28 '25 22:10 JustSxm

I get that… I can’t even go that far. It’s 404 on GitHub - all url Params are empty.

Is there some doc as of how to do the 2-way sync of the GitHub integration? The official doc smartly skips the first step and simply assumes you’ve authorized already. Which is exactly where it fails for me

But reading you it doesn’t even work if authorized.. so I’m starting to doubt its even worth to spend another hour on this on top of the 5 spent already lol.

smileBeda avatar Oct 29 '25 00:10 smileBeda