gpt4 book ai didi

artifactory - 代理柯南中心 : Remote from remote is not json, 但 'application/octet-stream'

转载 作者:行者123 更新时间:2023-12-05 06:00:20 28 4
gpt4 key购买 nike

我设置了一个带有 conan“远程”存储库的 jfrog artifactory 来代理官方 conan-center 存储库。我看到三个不同的 conan-center URL,具体取决于我阅读的来源:center.conan.ioconan.io/centerconan.bintray。 com。我使用了后者,conan.bintray.com,因为它是 artifactory 为柯南类型的远程存储库建议的默认 URL。我没有更改任何设置。

然后我尝试执行 conan install .. 就像我通常在本地构建中所做的那样,但我删除了默认提供的官方 conan-center 存储库,并添加了我的代理存储库(远程存储库,jfrog 称之为)

$ conan remote list
conan-center-remote: http://conan.foo.com:8081/artifactory/conan-center-remote/ [Verify SSL: True]

然后我得到这个错误:

$ conan install ..
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

libavrocpp/1.10.1: Not found in local cache, looking in remotes...
libavrocpp/1.10.1: Trying with 'conan-center-remote'...
ERROR: {
"conan_export.tgz" : "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/_/libavrocpp/1.10.1/_/5413c1d93780b9806d4ffcf0e9436409/export/conan_export.tgz",
"conan_sources.tgz" : "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/_/libavrocpp/1.10.1/_/5413c1d93780b9806d4ffcf0e9436409/export/conan_sources.tgz",
"conanmanifest.txt" : "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/_/libavrocpp/1.10.1/_/5413c1d93780b9806d4ffcf0e9436409/export/conanmanifest.txt",
"conanfile.py" : "https://conan.bintray.com/artifactory/api/conan/conan-center-legacy/v1/files/_/libavrocpp/1.10.1/_/5413c1d93780b9806d4ffcf0e9436409/export/conanfile.py"
}

Response from remote is not json, but 'application/octet-stream'. [Remote: conan-center-remote]

为什么会出现此错误?

最佳答案

我也遇到过这个问题。

我的解决方案是将远程 URL 从 https://your.jfrog.url/artifactory/your-conan-proxy-name/ 更改为 https://your.jfrog .url/artifactory/api/conan/your-conan-proxy-name/

然后更改 conan 本地配置:conan config set general.revisions_enabled=1

关于artifactory - 代理柯南中心 : Remote from remote is not json, 但 'application/octet-stream',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67704403/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com