YouTrack GitHub integration fails with 401 Unauthorized using valid token

I try to set up docker container with jetbrains youtrack and github intergration:

repository url i paste: myuser/myrepo

since the full url returns:

Invalid repository path format: https://github.com/myuser/myrepo

and to Auth i generate a token- classic github token with full access:

ghp_123456

The token: -is valid -have full control over everything -covers all scopes and repos.
I check it with curl in cmd.

Then i go to advanced setting and i paste there ngrok URL:
  https://….ngrok-free.app

this link works in browser.

and i get:

org.eclipse.egit.github.core.client.RequestException: Unauthorized (401)

Why the url simply doesnt work? Why i get 401?

 

 

the logs inside the container just show:

2025-06-04 12:45:27 Caused by: org.eclipse.egit.github.core.client.RequestException: Unauthorized (401)

0
1 comment

Hi piotrj,

It seems that you provide the ngrok URL in the advanced server settings for the VCS connection. As long as your GitHub repository is hosted in the cloud (i.e. on github.com), it should be reachable without configuring those settings or setting up ngrok for GitHub in the first place.

The full URL you used initially for the “Repository URL”, https://github.com/myuser/myrepo, seems absolutely correct, but you mentioned that it produces an error. Can you please see if this error still appears when you leave the “URL” and “SSL key” fields empty and use https://github.com/myuser/myrepo?

If the error persists, please share the exact “Repository URL” with our team as it'll be needed for further investigation. You can do it privately by submitting a ticket here: https://jb.gg/ytsup.

0

Please sign in to leave a comment.