Error in .util_download

未关闭
#66 16 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
r
领域
backend

调研方向

Locate the .util_download entry point and trace how bfcadd() passes the supplied proxy to the download request. Reproduce the example with the proxy and inspect warnings(); the issue does not specify a desired behavior or completion condition, so the expected fix must first be clarified.

由索引模型根据 Issue 内容生成。

描述

library(BiocFileCache)
path <- tempfile()
bfc <- BiocFileCache(path, ask = FALSE)
remoteresource <- "https://bioconductorhubs.blob.core.windows.net/annotationhub/goldenpath/hg19/database/stsMap_0.0.1.RData"
proxy <- "http://prox1:3128/"
bfcadd(bfc, rname = "uniquename", fpath = remoteresource, proxy = proxy)
Error in .util_download(x, rid[i], proxy, progress, config, "bfcadd()",  : 
  bfcadd() failed; see warnings()
In addition: Warning messages:
1: download failed
  web resource path: ‘https://bioconductorhubs.blob.core.windows.net/annotationhub/goldenpath/hg19/database/stsMap_0.0.1.RData’
  local file path: ‘/tmp/RtmpUyiOdh/fileff3f2260f4cc2/ff3f27e6e41cc_stsMap_0.0.1.RData’
  reason: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_disk()`:
! Couldn't resolve proxy name [bioconductorhubs.blob.core.windows.net]:
Could not resolve proxy: prox1 
2: bfcadd() failed; resource removed
  rid: BFC1
  fpath: ‘https://bioconductorhubs.blob.core.windows.net/annotationhub/goldenpath/hg19/database/stsMap_0.0.1.RData’
  reason: download failed 

packageDescription("BiocFileCache")
Package: BiocFileCache
Title: Manage Files Across Sessions
Version: 2.99.5
Authors@R: c(person("Lori", "Shepherd", email =
       "[email protected]", role = c("aut", "cre")),
       person("Martin", "Morgan", email =
       "[email protected]", role = "aut"))
Description: This package creates a persistent on-disk cache of
       files that the user can add, update, and retrieve. It is
       useful for managing resources (such as custom Txdb
       objects) that are costly or difficult to create, web
       resources, and data files used across sessions.
Depends: R (>= 3.4.0), dbplyr (>= 1.0.0)
Imports: methods, stats, utils, dplyr, RSQLite, DBI, filelock,
       curl, httr2
BugReports: https://github.com/Bioconductor/BiocFileCache/issues
DevelopmentURL: https://github.com/Bioconductor/BiocFileCache
License: Artistic-2.0
Encoding: UTF-8
RoxygenNote: 7.3.2
biocViews: DataImport
VignetteBuilder: knitr
Suggests: testthat, knitr, BiocStyle, rmarkdown, rtracklayer
git_url: https://git.bioconductor.org/packages/BiocFileCache
git_branch: devel
git_last_commit: e88fb8e
git_last_commit_date: 2025-05-15
Repository: Bioconductor 3.22
Date/Publication: 2025-05-18
NeedsCompilation: no
Packaged: 2025-05-18 20:18:32 UTC; biocbuild
Author: Lori Shepherd [aut, cre], Martin Morgan [aut]
Maintainer: Lori Shepherd <[email protected]>
Built: R 4.5.0; ; 2025-07-15 14:00:26 UTC; unix
主要语言
R
星标
14
派生
9
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Bioconductor/BiocFileCache 的其他 Issue

查看 Bioconductor/BiocFileCache 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。