Skip to content

download fails for some URLs #50761

Open
Open
@aplavin

Description

It throws an unclear error:

julia> url = "https://ned.ipac.caltech.edu/tap/sync?request=doQuery&lang=adql&FORMAT=VOTABLE%2FTD&query=select%20top%205%20%2A%20from%20objdir"

julia> download(url)
ERROR: RequestError: ssl_handshake returned - mbedTLS: (-0x7780) SSL - A fatal alert message was received from our peer while requesting https://ned.ipac.caltech.edu/tap/sync?request=doQuery&lang=adql&FORMAT=VOTABLE%2FTD&query=select%20top%205%20%2A%20from%20objdir

meanwhile curl works fine:

julia> run(pipeline(`curl $url`, `head -1`))
...
<?xml version="1.0" encoding="utf-8"?>
1<VOTABLE version="1.3" xmlns="http://www.ivoa.net/xml/VOTable/v1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ivoa.net/xml/VOTable/v1.3 http://www.ivoa.net/xml/VOTable/v1.3">
...

Is it possible to download this url in pure julia?

@pfitzseb suggested on slack that:

It's possible that that server only support TLS 1.3, which is not supported by the MbedTLS version our curl is linked against (which is what download uses)

But I'm not sure what does it mean in practice. Hopefully Julia should be able to download any url :)

Latest Julia release,

julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, broadwell)
  Threads: 1 on 12 virtual cores
Environment:
  JULIA_PKG_SERVER = 
  JULIA_PKG_USE_CLI_GIT = true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    stdlibJulia's standard library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions