Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Cannot connect to personal github repo on Buildmaster 26

    Scheduled Pinned Locked Moved Support
    9 Posts 2 Posters 20 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      naturescenes13
      last edited by

      I'm upgraded to Buildmaster 26 and I am no longer able to get buildmaster to connect to my repo. To be clear I lost my old buildmaster so I'm setting his up from scratch. I was able to add the connecting to github globally but when I tried to add the connection I get "[Error: Server replied with 404: Not Found" after I pick the Namespace and it tries to populate the repository list. I've tried manually typing in the reponame but that fails too.

      I just have a standard personal account on github.com. Clearly it is somewhat working as it populated the "Namespace" drop down.

      Thank you,
      Brandon

      rhessingerR 1 Reply Last reply Reply Quote
      • rhessingerR Offline
        rhessinger inedo-engineer @naturescenes13
        last edited by

        Hi @naturescenes13,

        What scopes do you have selected for your GitHub personal access token (classic)? Also, do you see any errors in the the diagnostics center? A 404 should only be returned when the namespace does not exist or if the PAT does not have access.

        Thanks,
        Rich

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote
        • N Offline
          naturescenes13
          last edited by

          Hi @rhessinger,
          I used postman to test the token and it appeared to give me repo info. Based on my research it looked like it was potentially due to the fact that it is a personal account rather than an enterprise one and the API for github works differently between those two. I wasn't sure if your plugin only worked for enterprise. I tried some workarounds it suggested (basically manually typing in the repo) and that didn't work either. I didn't see any entries in the diagnostic center.

          As far as the scopes, I have repo and everything underneath checked. I even added read:project. Also this is a classic token,

          Thank you,
          Brandon

          rhessingerR 1 Reply Last reply Reply Quote
          • rhessingerR Offline
            rhessinger inedo-engineer @naturescenes13
            last edited by

            Hi @naturescenes13,

            Can you confirm which version of BuildMaster and the version of GitHub extension you are using? I tested with BuildMaster 2026.4, a classic GitHub PAT, and a personal repository and I'm not seeing any issues.

            Thanks,
            Rich

            Products Engineer, Inedo

            N 2 Replies Last reply Reply Quote
            • N Offline
              naturescenes13 @rhessinger
              last edited by

              @rhessinger ,

              I was on 2026.3 but upgraded to 2026.4 and that didn't help. I only show one version of the extension available which is what I have installed and that is 4.0.0. Did you set a custom API URL when you set up your GitHub connection?

              Thank you,
              Brandon

              1 Reply Last reply Reply Quote
              • N Offline
                naturescenes13 @rhessinger
                last edited by

                @rhessinger,

                I want to make sure you have as much information as you need. I added a service account using "Git Service Account" and picked "GitHub Account". I only entered Username and Personal access token. If you test the credentials it passes and said it found 1 namespace. And to confirm, yes I used a classic GitHub PAT.

                Even when I try to add the connection to an app it shows the namespace it just won't list the repositories. When you added the connection in your test did you manually type in the repository or pick it from the list? The only other thing I can possibly think of is that my namespace has an underscore in it. Not sure if the special character is messing with something.

                Hopefully the extra information helps.

                Thank you,
                Brandon

                rhessingerR 1 Reply Last reply Reply Quote
                • rhessingerR Offline
                  rhessinger inedo-engineer @naturescenes13
                  last edited by

                  Hi @naturescenes13,

                  Thanks for the detailed information. Let me run some test's on our side and I will provide an update within the next couple of days.

                  Thanks,
                  Rich

                  Products Engineer, Inedo

                  N 1 Reply Last reply Reply Quote
                  • N Offline
                    naturescenes13 @rhessinger
                    last edited by

                    @rhessinger

                    The username I had was old and I thought I'd change it anyways and just see if removing the underscore helped. Believe it or not it did. Once I changed my username to something with an underscore I went in to buildmaster and edited the Services & Credentials record and only changed the username and saved it. After that I deleted and recreated the connection. Once again the namespaces populated but the repositories didn't when I selected the namespace (this is likely because you only support the enterprise API for that part and they user a slightly different API for personal) but it didn't give me an error like before. I manually typed in the name of the repository and when I saved it I was able to clone and sync.

                    Hopefully this helps you fix a bug and will help someone else in the meantime.

                    Thank you,
                    Brandon

                    rhessingerR 1 Reply Last reply Reply Quote
                    • rhessingerR Offline
                      rhessinger inedo-engineer @naturescenes13
                      last edited by

                      Hi @naturescenes13,

                      I don't think this is actually an issue with BuildMaster and I instead think this is an issue with GitHub itself. Our GitHub implementation is actually implemented against the github.com API spec and not GitHub enterprise. With that said, the APIs we use actually align between both GitHub products. You can see our implementation here: https://github.com/Inedo/inedox-github/blob/master/GitHub/InedoExtension/Clients/GitHubClient.cs

                      With that said, I tried to create a username with an underscore and GitHub completely blocks me from that saying it is an unsupported character. The error message I get is Username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen. My guess is the some of the API's still accept the old usernames and some of them don't (most likely the newer ones). We probably would need to convert the underscore to some other character (like a - or something) to bypass that. Searching around I see this issue on other open source repositories that wrap GitHub's APIs have the same problem.

                      Without being able to recreate the issue first hand, I don't feel comfortable trying to apply a fix without the ability to test the fix. Especially since underscores are not a supported character anymore.

                      Thanks,
                      Rich

                      Products Engineer, Inedo

                      1 Reply Last reply Reply Quote

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post
                      Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation