Skip to content
\n

If you execute this and then SSH into the runner once the tmate session is setup and prints the connection details.
\nIf you now do

\n
http -fp HBh POST https://store.rg-adguard.net/api/GetFiles type=ProductId url=9p804crf0395
\n

You get a \"403 Forbidden\" response.
\nIf you do the same just in the WSL distribution

\n
wsl http -fp HBh POST https://store.rg-adguard.net/api/GetFiles type=ProductId url=9p804crf0395
\n

you get a \"200 OK\" response.

\n

I cannot see why it is working from within the WSL distribution but not from the host system.
\nFrom the host system it also worked fine until recently before the tests for my setup-wsl action went to red because of this.

\n

If I do

\n
http https://api.ipify.org format==json | jq .ip
\n

and

\n
wsl http https://api.ipify.org format==json | jq .ip
\n

I get the same IP

\n

If I do

\n
http -fp b POST https://echo.free.beeceptor.com/api/GetFiles type=ProductId url=9p804crf0395
\n

and

\n
wsl http -fp b POST https://echo.free.beeceptor.com/api/GetFiles type=ProductId url=9p804crf0395
\n

I get the exact same response.

\n

If I listen to port 1234 on my.serv.er using nc -l -p 1234 | xxd and then do

\n
http -f POST http://my.serv.er:1234/api/GetFiles type=ProductId url=9p804crf0395
\n

and

\n
wsl http -f POST http://my.serv.er:1234/api/GetFiles type=ProductId url=9p804crf0395
\n

I get the exact same bytes transferred.

\n

I'm a bit lost why this behaves differently.
\nDoes anyone have any idea?

","upvoteCount":3,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

I finally got contact to the maintainer of that service and he luckily was very helping.
\nIt turns out, this is not caused by the GHA infrastructure.
\nThe service is protected by Cloudflare.
\nAnd the requests I made from the action had no User-Agent header set which Cloudflare seems to have stopped liking and thus sent the request to the anti-bot waiting room.
\nNow that I added a User-Agent, the requests work again.

\n

Thanks for everyone involved in trying to clear this up.

","upvoteCount":0,"url":"https://github.com/actions/runner-images/discussions/8791#discussioncomment-9569612"}}}
Discussion options

You must be logged in to vote

I finally got contact to the maintainer of that service and he luckily was very helping.
It turns out, this is not caused by the GHA infrastructure.
The service is protected by Cloudflare.
And the requests I made from the action had no User-Agent header set which Cloudflare seems to have stopped liking and thus sent the request to the anti-bot waiting room.
Now that I added a User-Agent, the requests work again.

Thanks for everyone involved in trying to clear this up.

Replies: 3 comments 27 replies

Comment options

You must be logged in to vote
27 replies
@mikhailkoliada
Comment options

@ljharb
Comment options

@Vampire
Comment options

@Vampire
Comment options

Answer selected by Vampire
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment