Skip to content

www is being added to API endpoint #3703

Open
@ay0o

Description

Describe the bug
When I try to configure a runner with a registration token generated with either a GitHub App or a PAT, a www is added to the middle of the endpoint. Instead of api.github.com, it becomes api.www.github.com.

However, if I use the token generated by GitHub when manually going to a repo and hitting the New self-hosted runner button, it works.

To make things more weird, if we ignore the configuration and just run the run.sh --check, the same happens.

For example:

2025-02-07T11:03:22.6743857Z ***************************************************************************************************************
2025-02-07T11:03:22.6743878Z ****                                                                                                       ****
2025-02-07T11:03:22.6743881Z ****     Try DNS lookup for api.www.github.com
2025-02-07T11:03:22.6743893Z ****                                                                                                       ****
2025-02-07T11:03:22.6743897Z ***************************************************************************************************************
2025-02-07T11:03:22.6796296Z ***************************************************************************************************************
2025-02-07T11:03:22.6796319Z ****                                                                                                       ****
2025-02-07T11:03:22.6796338Z ****     Resolved DNS for api.www.github.com failed with error: System.Net.Sockets.SocketException (00000005, 0xFFFDFFFF): Name or service not known

I have tried both Ubuntu and Amazon Linux

To Reproduce

  1. Launch an EC2
  2. Download the runner software
  3. Run the checker. ./run.sh --check --url ... --pat ...

Expected behavior
Correct endpoints used

Runner Version and Platform

2.322.0

Amazon Linux and Ubuntu 24.04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions