Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tispokes opened this issue Jan 18, 2022 · 1 comment

Comments

@tispokes
Copy link

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 ;-)

@tispokes tispokes changed the title Update gecko returns statusCode=403 because cURL get a redirect from GitHub [WD12.1.8] Update gecko returns statusCode=403 because cURL get a redirect from GitHub Jan 18, 2022
@tispokes
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant