Schlumberger / vsts-chromium-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

404 when trying to download latest build

kinjin-ng opened this issue · comments

The download URL format for Chromium has changed.

Instead of
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2F<Revision_Number>%2Fchrome-win32.zip?&alt=media

It should be
https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2F<Revision_Number>%2Fchrome-win32.zip?&alt=media

Alternatively, there is a static URL to the latest revision that could be used for a less error prone solution
https://download-chromium.appspot.com/dl/Win_x64?type=snapshots

===========================================
Log from VSTS

2018-10-09T20:49:51.5158586Z ##[debug]Getting latest revision from 'https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2FLAST_CHANGE?alt=media'
2018-10-09T20:49:51.5572826Z ##[debug]GET https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2FLAST_CHANGE?alt=media with 0-byte payload
2018-10-09T20:49:52.1109437Z ##[debug]received 6-byte response of content type text/plain
2018-10-09T20:49:52.1483393Z ##[debug]Latest revision is '598055'
2018-10-09T20:49:52.1524708Z ##[debug]Downloading 'https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2F598055%2Fchrome-win32.zip?&alt=media' to 'D:\a_tasks\chromium-task_3986af1e-6143-4578-91ab-62323a6fb618\0.1.15\chrome.zip'
2018-10-09T20:49:52.1553153Z ##[debug]GET https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2F598055%2Fchrome-win32.zip?&alt=media with 0-byte payload
2018-10-09T20:49:52.7172037Z
2018-10-09T20:49:52.7224707Z
2018-10-09T20:49:52.7309962Z Status : ProtocolError
2018-10-09T20:49:52.7310241Z Response : System.Net.HttpWebResponse
2018-10-09T20:49:52.7310363Z Message : The remote server returned an error: (404) Not Found.
2018-10-09T20:49:52.7310510Z Data : {}