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

Error 404 when downloading #190

Closed
tagliala opened this issue Jul 26, 2023 · 12 comments · Fixed by #192
Closed

Error 404 when downloading #190

tagliala opened this issue Jul 26, 2023 · 12 comments · Fixed by #192
Assignees

Comments

@tagliala
Copy link

tagliala commented Jul 26, 2023

##setup chromedriver
/home/runner/work/_actions/nanasess/setup-chromedriver/v2/lib/setup-chromedriver.sh  linux64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   1[9](https://github.com/diowa/ruby3-rails7-bootstrap-heroku/actions/runs/5664695183/job/15348359218?pr=575#step:4:10)3    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
Error: The process '/home/runner/work/_actions/nanasess/setup-chromedriver/v2/lib/setup-chromedriver.sh' failed with exit code 22

Ref: https://github.com/diowa/ruby3-rails7-bootstrap-heroku/actions/runs/5665831080/job/15351356245?pr=575


I think that it is because chromedriver 115 has not been uploaded yet

@nanasess
Copy link
Owner

We will expedite support for Chrome for Testing.
#175

@bseeger
Copy link

bseeger commented Jul 26, 2023

Thank you for working on this so quickly! We are also experiencing this issue.

@stell
Copy link

stell commented Jul 26, 2023

TDD is on pause :) Fingers crossed.

@worldroot
Copy link

🤞🤞

@worldroot
Copy link

hey @bseeger , @stell , @tagliala you can fix the version in the action + in your rails_helper for now until theres is an update here : ( so that your pipeline are not stuck )
in your github action :

  - uses: nanasess/setup-chromedriver@v2.0.0 
      with:
        chromedriver-version: '114.0.5735.90'`

in your rails_helper :
Webdrivers::Chromedriver.required_version = '114.0.5735.90'

@dan-mba
Copy link

dan-mba commented Jul 26, 2023

Chromedriver has moved the endpoint to get the filenames for 115+.
It is now a JSON file here https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json

@nanasess
Copy link
Owner

Thank you all for your contributions!, Fixed version has been released.
https://github.com/nanasess/setup-chromedriver/releases/tag/v2.1.0

AsturaPhoenix added a commit to AsturaPhoenix/trip_planner_aquamarine that referenced this issue Jul 26, 2023
AsturaPhoenix added a commit to AsturaPhoenix/trip_planner_aquamarine that referenced this issue Jul 26, 2023
@ejskipper
Copy link

Hi there! Thanks for the speedy update here.

I found that after updating to use @v2, I still got an issue:

 Webdrivers::VersionError:
            Unable to find latest point release version for 115.0.5790. You appear to be using a non-production version of Chrome. Please set `Webdrivers::Chromedriver.required_version = <desired driver version>` to a known chromedriver version: https://chromedriver.storage.googleapis.com/index.html

I can see that some other users had a similar issue here, and a follow-up patch was released.

Do we need something similar here? Not sure if the issue can be fixed from within the setup-chromedriver action

For now I have implemented a workaround by manually installing an older version of Chrome, which works fine, but would be great to remove that.

My workaround, in case anyone else has the same issue:

      - name: Install Chrome
        run: |
          # Add the Google Chrome repository
          wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \
          && sudo apt install -y --allow-downgrades /tmp/chrome.deb \
          && rm /tmp/chrome.deb
      
      - name: Set up chrome driver
        uses: nanasess/setup-chromedriver@v2

@sebgrebe
Copy link

I'm also getting the same issue as @ejskipper. Will this be addressed? Should a new issue be opened for this?

@mcalthrop
Copy link

mcalthrop commented Aug 1, 2023

My workaround, in case anyone else has the same issue:

      - name: Install Chrome
        run: |
          # Add the Google Chrome repository
          wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \
          && sudo apt install -y --allow-downgrades /tmp/chrome.deb \
          && rm /tmp/chrome.deb
      
      - name: Set up chrome driver
        uses: nanasess/setup-chromedriver@v2

@ejskipper I haven't been able to get the solution above to work.

Here's the URL for version 114.0.5735.90, for example, and it returns a 404:
https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90_amd64.deb

I've also tried with the following versions:

  • 114.0.5735.198
  • 114.0.5735.133

Those were the versions listed on https://chromium.cypress.io/ for Linux in the Stable channel for major version 114:

Screenshot 2023-08-01 at 15 53 13

@tagliala
Copy link
Author

tagliala commented Aug 1, 2023

The issue reported by me has been fixed in the last version of setup-chromedriver action (2.1) and there is no need to make changes to the workflow

@ejskipper
Copy link

All working fine for me now, thanks!

I'm no longer using the above workaround, but just in case anyone needs it for some reason, I was using CHROME_VERSION: "114.0.5735.198-1". (cc @mcalthrop )

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

Successfully merging a pull request may close this issue.

9 participants