404 error when downloading artifact from build file

pcercuei's Avatar


30 Jun, 2017 04:00 PM

I'm trying to download this artifact:

It downloads fine from my PC, but from a appveyor script I get a 404 error.
How to download an artifact from a appveyor.yml script?

  1. 1 Posted by Ilya Finkelshte... on 30 Jun, 2017 05:47 PM

    Ilya Finkelshteyn's Avatar

    Please try this script, should work. If you need to use your own script, please send it here for us to understand why it does not work.

  2. 2 Posted by pcercuei on 03 Jul, 2017 09:44 AM

    pcercuei's Avatar

    This is my script:

    I just use curl/wget to download the file, which is public from the outside world (everybody can download it from its URL).

    But AppVeyor can't: https://ci.appveyor.com/project/analogdevicesinc/scopy/build/1.0.682

  3. 3 Posted by Ilya Finkelshte... on 03 Jul, 2017 07:51 PM

    Ilya Finkelshteyn's Avatar

    I see. There is a problem how URL encoded string works in AppVeyor command line. I was not able to find quick solution to make it work with curl, but our own tool deals with URL encoding well, so workaround is:

    appveyor downloadfile "https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw32-build-deps.tar.xz?branch=master&job=Environment: MINGW_VERSION=mingw32, ARCH=i686"
  4. 4 Posted by pcercuei on 04 Jul, 2017 02:29 PM

    pcercuei's Avatar


    So I tried it:

    But this does not work:
    It's strange, it behaves like if the line is ignored completely. It does not appear in the log...

  5. 5 Posted by Ilya Finkelshte... on 04 Jul, 2017 11:38 PM

    Ilya Finkelshteyn's Avatar

    Apparently you also need to wrap the whole command into single quotes. I sent PR with fix.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac