Skip to content

Error in .util_download #66

@mavino

Description

@mavino
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 =
       "lori.shepherd@roswellpark.org", role = c("aut", "cre")),
       person("Martin", "Morgan", email =
       "martin.morgan@roswellpark.org", 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 <lori.shepherd@roswellpark.org>
Built: R 4.5.0; ; 2025-07-15 14:00:26 UTC; unix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions