conan-io / conan-io/docs

AuthenticationException: error

Open
#3,508 10 comments 0 reactions 1 assignee Claimed by @memsharded View on GitHub
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

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"``

settings = "os", "compiler", "build_type", "arch"

def source(self):

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", "password"))

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.