angular/webdriver-manager

[WD12.1.8] Update gecko returns statusCode=403 because cURL get a redirect from GitHub

Opened this issue · 1 comments

If i run webdriver-manager update --verbose --chrome false --standalone false --gecko true i get this return:

E/downloader - tunneling socket could not be established, statusCode=403

I investigated a bit in the downloader.js and extracted the URL for the download request.
The computed request options linking to this URL https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-win64.zip

If I cURL this URL I only get HTML back with a redirect:
curl https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-win64.zip

<html><body>You are being <a href="https://objects.githubusercontent.com/github-production-release-asset-2e65be/25354393/bf86d4a4-84af-4963-987c-26da13b9dfc9?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220118%2Fus-east-
1%2Fs3%2Faws4_request&amp;X-Amz-Date=20220118T172304Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=0b26bf0fb48cf652cdf4bfbb1d78a1cad4fc411350477efe3b3c592e76321ff2&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;key_id=0&amp;repo_id=25354393&amp;response-co
ntent-disposition=attachment%3B%20filename%3Dgeckodriver-v0.30.0-win64.zip&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>

Sure, same with -o option in cURL command. Setting proxy does not affect anything.

Any suggestions here? Expect manually download and unzip geckodriver ;-)

The update component logs a "file exists" but it is not the correct file. It just contains the redirect html block.
image