And hereβs the error from the client:
julia> execution_time = @elapsed get_batches()
ERROR: HTTP.RequestError:
HTTP.Request:
HTTP.Messages.Request:
"""
GET / HTTP/1.1
Host: localhost:8008
Accept: */*
User-Agent: HTTP.jl/1.10.0
Content-Length: 0
Accept-Encoding: gzip
"""Underlying error:
EOFError: read end of file
Stacktrace:
[1] (::HTTP.ConnectionRequest.var"#connections#4"{β¦})(req::HTTP.Messages.Request; proxy::Nothing, socket_type::Type, socket_type_tls::Nothing, readtimeout::Int64, connect_timeout::Int64, logerrors::Bool, logtag::Nothing, kw::@Kwargs{β¦})
@ HTTP.ConnectionRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/ConnectionRequest.jl:140
[2] connections
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/ConnectionRequest.jl:58 [inlined]
[3] (::Base.var"#96#98"{β¦})(args::HTTP.Messages.Request; kwargs::@Kwargs{β¦})
@ Base ./error.jl:308
[4] (::HTTP.RetryRequest.var"#manageretries#3"{β¦})(req::HTTP.Messages.Request; retry::Bool, retries::Int64, retry_delays::ExponentialBackOff, retry_check::Function, retry_non_idempotent::Bool, kw::@Kwargs{β¦})
@ HTTP.RetryRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RetryRequest.jl:75
[5] manageretries
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RetryRequest.jl:30 [inlined]
[6] (::HTTP.CookieRequest.var"#managecookies#4"{β¦})(req::HTTP.Messages.Request; cookies::Bool, cookiejar::HTTP.Cookies.CookieJar, kw::@Kwargs{β¦})
@ HTTP.CookieRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/CookieRequest.jl:42
[7] managecookies
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/CookieRequest.jl:19 [inlined]
[8] (::HTTP.HeadersRequest.var"#defaultheaders#2"{β¦})(req::HTTP.Messages.Request; iofunction::Nothing, decompress::Nothing, basicauth::Bool, detect_content_type::Bool, canonicalize_headers::Bool, kw::@Kwargs{β¦})
@ HTTP.HeadersRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/HeadersRequest.jl:71
[9] defaultheaders
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/HeadersRequest.jl:14 [inlined]
[10] (::HTTP.RedirectRequest.var"#redirects#3"{β¦})(req::HTTP.Messages.Request; redirect::Bool, redirect_limit::Int64, redirect_method::Nothing, forwardheaders::Bool, response_stream::Nothing, kw::@Kwargs{β¦})
@ HTTP.RedirectRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RedirectRequest.jl:25
[11] redirects
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RedirectRequest.jl:14 [inlined]
[12] (::HTTP.MessageRequest.var"#makerequest#3"{β¦})(method::String, url::URIs.URI, headers::Nothing, body::Vector{β¦}; copyheaders::Bool, response_stream::Nothing, http_version::HTTP.Strings.HTTPVersion, verbose::Int64, kw::@Kwargs{})
@ HTTP.MessageRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/MessageRequest.jl:35
[13] makerequest
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/MessageRequest.jl:24 [inlined]
[14] request(stack::HTTP.MessageRequest.var"#makerequest#3"{β¦}, method::String, url::String, h::Nothing, b::Vector{β¦}, q::Nothing; headers::Nothing, body::Vector{β¦}, query::Nothing, kw::@Kwargs{})
@ HTTP ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:457
[15] request(stack::Function, method::String, url::String, h::Nothing, b::Vector{UInt8}, q::Nothing)
@ HTTP ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:455
[16] #request#20
@ ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:315 [inlined]
[17] request(stack::Function, method::String, url::String, h::Nothing, b::Vector{UInt8}, q::Nothing) (repeats 2 times)
@ HTTP ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:313 [inlined]
[18] get
@ ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:518 [inlined]
[19] get_batches()
@ Main ./REPL[111]:2
[20] top-level scope
@ ./timing.jl:395
caused by: TaskFailedException
nested task error: EOFError: read end of file
Stacktrace:
[1] closeread(http::HTTP.Streams.Stream{HTTP.Messages.Response, HTTP.Connections.Connection{Sockets.TCPSocket}})
@ HTTP.Streams ~/.julia/packages/HTTP/PnoHb/src/Streams.jl:378
[2] macro expansion
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/StreamRequest.jl:61 [inlined]
[3] (::HTTP.StreamRequest.var"#3#5"{β¦})()
@ HTTP.StreamRequest ~/.julia/packages/ConcurrentUtilities/J6iMP/src/ConcurrentUtilities.jl:9
caused by: EOFError: read end of file
Stacktrace:
[1] read_to_buffer(c::HTTP.Connections.Connection{Sockets.TCPSocket}, sizehint::Int64)
@ HTTP.Connections ~/.julia/packages/HTTP/PnoHb/src/Connections.jl:221
[2] readuntil(c::HTTP.Connections.Connection{β¦}, f::typeof(HTTP.Parsers.find_end_of_chunk_size), sizehint::Int64)
@ HTTP.Connections ~/.julia/packages/HTTP/PnoHb/src/Connections.jl:243
[3] readuntil(c::HTTP.Connections.Connection, f::F, sizehint::Any) where F<:Function
@ HTTP.Connections ~/.julia/packages/HTTP/PnoHb/src/Connections.jl:238 [inlined]
[4] readchunksize(io::HTTP.Connections.Connection{Sockets.TCPSocket}, message::HTTP.Messages.Response)
@ HTTP.Messages ~/.julia/packages/HTTP/PnoHb/src/Messages.jl:558
[5] ntoread
@ ~/.julia/packages/HTTP/PnoHb/src/Streams.jl:202 [inlined]
[6] readall!(http::HTTP.Streams.Stream{HTTP.Messages.Response, HTTP.Connections.Connection{β¦}}, buf::IOBuffer)
@ HTTP.Streams ~/.julia/packages/HTTP/PnoHb/src/Streams.jl:311
[7] read (repeats 2 times)
@ ~/.julia/packages/HTTP/PnoHb/src/Streams.jl:297 [inlined]
[8] readbody!(stream::HTTP.Streams.Stream{β¦}, res::HTTP.Messages.Response, buf_or_stream::HTTP.Streams.Stream{β¦}, lock::ReentrantLock)
@ HTTP.StreamRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/StreamRequest.jl:169
[9] readbody(stream::HTTP.Streams.Stream{β¦}, res::HTTP.Messages.Response, decompress::Nothing, lock::ReentrantLock)
@ HTTP.StreamRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/StreamRequest.jl:142
[10] macro expansion
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/StreamRequest.jl:54 [inlined]
[11] (::HTTP.StreamRequest.var"#3#5"{β¦})()
@ HTTP.StreamRequest ~/.julia/packages/ConcurrentUtilities/J6iMP/src/ConcurrentUtilities.jl:9
Stacktrace:
[1] sync_end(c::Channel{Any})
@ Base ./task.jl:448
[2] macro expansion
@ ./task.jl:480 [inlined]
[3] streamlayer(stream::HTTP.Streams.Stream{β¦}; iofunction::Nothing, decompress::Nothing, logerrors::Bool, logtag::Nothing, timedout::Nothing, kw::@Kwargs{β¦})
@ HTTP.StreamRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/StreamRequest.jl:35
[4] streamlayer
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/StreamRequest.jl:21 [inlined]
[5] (::HTTP.ExceptionRequest.var"#exceptions#2"{β¦})(stream::HTTP.Streams.Stream{β¦}; status_exception::Bool, timedout::Nothing, logerrors::Bool, logtag::Nothing, kw::@Kwargs{β¦})
@ HTTP.ExceptionRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/ExceptionRequest.jl:14
[6] exceptions
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/ExceptionRequest.jl:13 [inlined]
[7] (::HTTP.TimeoutRequest.var"#timeouts#3"{β¦})(stream::HTTP.Streams.Stream{β¦}; readtimeout::Int64, logerrors::Bool, logtag::Nothing, kw::@Kwargs{β¦})
@ HTTP.TimeoutRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/TimeoutRequest.jl:18
[8] (::HTTP.ConnectionRequest.var"#connections#4"{β¦})(req::HTTP.Messages.Request; proxy::Nothing, socket_type::Type, socket_type_tls::Nothing, readtimeout::Int64, connect_timeout::Int64, logerrors::Bool, logtag::Nothing, kw::@Kwargs{β¦})
@ HTTP.ConnectionRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/ConnectionRequest.jl:119
[9] connections
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/ConnectionRequest.jl:58 [inlined]
[10] (::Base.var"#96#98"{β¦})(args::HTTP.Messages.Request; kwargs::@Kwargs{β¦})
@ Base ./error.jl:308
[11] (::HTTP.RetryRequest.var"#manageretries#3"{β¦})(req::HTTP.Messages.Request; retry::Bool, retries::Int64, retry_delays::ExponentialBackOff, retry_check::Function, retry_non_idempotent::Bool, kw::@Kwargs{β¦})
@ HTTP.RetryRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RetryRequest.jl:75
[12] manageretries
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RetryRequest.jl:30 [inlined]
[13] (::HTTP.CookieRequest.var"#managecookies#4"{β¦})(req::HTTP.Messages.Request; cookies::Bool, cookiejar::HTTP.Cookies.CookieJar, kw::@Kwargs{β¦})
@ HTTP.CookieRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/CookieRequest.jl:42
[14] managecookies
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/CookieRequest.jl:19 [inlined]
[15] (::HTTP.HeadersRequest.var"#defaultheaders#2"{β¦})(req::HTTP.Messages.Request; iofunction::Nothing, decompress::Nothing, basicauth::Bool, detect_content_type::Bool, canonicalize_headers::Bool, kw::@Kwargs{β¦})
@ HTTP.HeadersRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/HeadersRequest.jl:71
[16] defaultheaders
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/HeadersRequest.jl:14 [inlined]
[17] (::HTTP.RedirectRequest.var"#redirects#3"{β¦})(req::HTTP.Messages.Request; redirect::Bool, redirect_limit::Int64, redirect_method::Nothing, forwardheaders::Bool, response_stream::Nothing, kw::@Kwargs{β¦})
@ HTTP.RedirectRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RedirectRequest.jl:25
[18] redirects
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/RedirectRequest.jl:14 [inlined]
[19] (::HTTP.MessageRequest.var"#makerequest#3"{β¦})(method::String, url::URIs.URI, headers::Nothing, body::Vector{β¦}; copyheaders::Bool, response_stream::Nothing, http_version::HTTP.Strings.HTTPVersion, verbose::Int64, kw::@Kwargs{})
@ HTTP.MessageRequest ~/.julia/packages/HTTP/PnoHb/src/clientlayers/MessageRequest.jl:35
[20] makerequest
@ ~/.julia/packages/HTTP/PnoHb/src/clientlayers/MessageRequest.jl:24 [inlined]
[21] request(stack::HTTP.MessageRequest.var"#makerequest#3"{β¦}, method::String, url::String, h::Nothing, b::Vector{β¦}, q::Nothing; headers::Nothing, body::Vector{β¦}, query::Nothing, kw::@Kwargs{})
@ HTTP ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:457
[22] request(stack::Function, method::String, url::String, h::Nothing, b::Vector{UInt8}, q::Nothing)
@ HTTP ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:455
[23] #request#20
@ ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:315 [inlined]
[24] request(stack::Function, method::String, url::String, h::Nothing, b::Vector{UInt8}, q::Nothing) (repeats 2 times)
@ HTTP ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:313 [inlined]
[25] get
@ ~/.julia/packages/HTTP/PnoHb/src/HTTP.jl:518 [inlined]
[26] get_batches()
@ Main ./REPL[111]:2
[27] top-level scope
@ ./timing.jl:395
Some type information was truncated. Use `show(err)` to see complete types.