Git Product home page Git Product logo

Comments (7)

michxymi avatar michxymi commented on July 1, 2024 1

Yes, we got it actually. It proved that the problem was not at all with the conan client but rather with our new conan artifactory repo, not having set the anonymous access as with the v1 one. Once that was set, the command worked seamlessly. I'll definitely give a look to config as a package! Thanks for all your help!

from conan.

memsharded avatar memsharded commented on July 1, 2024

Hi @michxymi

Some quick questions:

  • Does the file has any access or permissions? Or is it available for anonymous access?
  • The curl command that you are using is exactly like that or it has more arguments? If there are more arguments, can you please share the full curl command?
  • As you are packaging it with python can you also download it with Python requests? It should be straightforward, something like:
import requests

url = 'your-url'
r = requests.get(url)
open('config-test.zip', 'wb').write(r.content)

from conan.

michxymi avatar michxymi commented on July 1, 2024

Hey @memsharded , thanks for your prompt reply. I'll give this a go. I've also updated the full curl command we use to upload the zipped archive.

from conan.

memsharded avatar memsharded commented on July 1, 2024

Hey @memsharded , thanks for your prompt reply. I'll give this a go. I've also updated the full curl command we use to upload the zipped archive.

Does the UPLOAD_USER includes a token/password? Or is it possible to upload without auth? I suspect it will be mostly a credentials issue.

Also, just in case, this process might be highly simplified and improved with https://docs.conan.io/2/reference/commands/config.html#conan-config-install-pkg, that allows to use Conan packages in the Conan repo for configuration, and benefits from version ranges, lockfiles, and even package_id effect if desired.

from conan.

michxymi avatar michxymi commented on July 1, 2024

Trying with the requests python package, I originally got ssl errors but after passing the certificate file I got a json file back which is basically a Not Found response:

{ "errors" : [ { "status" : 404, "message" : "Resource not found" } ] }

UPLOAD_USER is a password auth we use in CI. I can try without but it seems that I should better look at the conan config install pkg.

from conan.

memsharded avatar memsharded commented on July 1, 2024

So it seems basically an auth error, the URL for that download require credentials that are not being provided?
Probably creds should be embedded in the URL, or the URL made available via anonymous access?

from conan.

memsharded avatar memsharded commented on July 1, 2024

Thanks for the feedback!

from conan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.