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
AuthenticationException: error #3508
Comments
Thanks for your report.
First, I'd like to start with a recommendation, even if the
Of course, it would be good to validate that you have the right credentials, can you download that file with a |
@memsharded Thank you for attending to my issue and valuable suggestions. can we control the downloads? A specific person can download the file from a remote repo. (in my case bitbucket) using conan. and one more question I have also tried this : but getting error: |
With exactly the same credentials? It should be good to verify in your machine that you are trying it is possible with those credentials, to rule out other possible credentials, machine-setup or system configurations issues. The second error is expected and the error message is giving a hint |
you mean to say like this?
filename="myrepo123.zip", Now It is showing AuthenticationException
|
Along with conanfile, the source_credentials.json file is also added in the same folder. Still facing issue of AuthenticationException source_credentials.json: |
That files does not go in the same folder, it has to be in the Conan cache, did you add it to the Conan cache? Also the URL is wrong, you should be using the same URL root that you use in your conanfile.py, otherwise it will not match and it will not use the credentials. Your I'd still like to see a curl or wget command that successfully download the file in the computer, without using Conan. We need to rule out other potential factors. |
No, I don't know how to add data directly to the cache. only exports_sources = is known to me.
Now, the Same links are filled at both places but still not working {
I am using a Windows machine for development. is curl useful in this case? |
These are some useful resources to learn:
It is not the same link. It is the same base URL of the domain to cover with the credentials.
yes, you can get |
Oh, understood, it is a conan home folder. source_credentials.json is added in conan cache.
Just for the feedback; these are the changes I have made. But, the result is the same as the previous.
Ok I will try this. Thank you |
I am afraid the url is still wrong, it needs to include the protocol. Please check the examples in https://docs.conan.io/2/reference/config_files/source_credentials.html, they all include the protocol. |
Trying conan.tools.files.download() from https://docs.conan.io/2/reference/tools/files/downloads.html but facing issue
Error:
C:\Users\sangram.jadhav\handle_sources>conan source .
conanfile.py (hello/4.0.1): Calling source() in C:\Users\sangram.jadhav\~~\Source handle\handle_sources
ERROR: conanfile.py (hello/4.0.1): Error in source() method, line 32
download(self, "https://bitbucket.bhtc.com/rest/api/latest/projects/~SANGRAM.JADHAV/repos/conan_trail/archive?at=refs%2Fheads%2FZlib_Lib&format=zip", "myrepo123.zip", auth=("sangram.jadhav", "XYZ"))
AuthenticationException:
Conanfile:
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
from conan.tools.files import copy, get, download, unzip, check_sha1
class helloRecipe(ConanFile):
name = "hello"
version = "4.0.1"
The text was updated successfully, but these errors were encountered: