Closed GeoTuxMan closed 1 year ago
Hello George,
I suspect the error comes from the BODC server, which provides information about the data providers etc. I will try to run a similar example on my machine to see if I have the same problem.
Hello Charles,
Until today the script run fine; but today I don't know what happened. I will try tomorrow again. It's something about this metadata (from bodc server): "parameter_keyword_urn" => "SDN:P35::EPC00002"
Cheers !
Hello Charles,
Today my script works fine π So, it's no need to run again Anyway, thank you very much !
Cheers !
Describe the bug The error come when execute this line: ncglobalattrib,ncvarattrib = SDNMetadata(metadata,filename,varname,lonr,latr)
Output: LoadError: HTTP.Exceptions.StatusError(500, "GET", "/collection/P35/current/EPC00002/", HTTP.Messages.Response: """ HTTP/1.1 500 Internal Server Error
Environment
Installed modules
To Reproduce The command and their arguments which produced the error
Full screen output Preferably obtained by setting
ENV["JULIA_DEBUG"] = "DIVAnd"
Full stack trace with error message include("O2_AllSeason_ALLBS_fitvertHCL.jl") 0.599048 seconds (693 allocations: 776.667 MiB, 29.74% gc time) extrema(b) = (NaN, NaN) [ Info: Output dir already exists [ Info: Starting computations [ Info: grid size [ Info: lon: 388 [ Info: lat: 201 [ Info: depth: 13 [ Info: N seasons: 1 [ Info: will compute 27 climatologies yearlist = UnitRange{Int64}[1970:1975, 1971:1976, 1972:1977, 1973:1978, 1974:1979, 1975:1980, 1976:1981, 1977:1982, 1978:1983, 1979:1984, 1980:1985, 1981:1986, 1982:1987, 1983:1988, 1984:1989, 1985:1990, 1986:1991, 1987:1992, 1988:1993, 1989:1994, 1990:1995, 1991:1996, 1992:1997, 1993:1998, 1994:1999, 1995:2000, 1996:2001] [ Info: year boundaries : [1970, 2001]) [ Info: Start reading NetCDF file [ Info: 2023-01-09T15:43:28.088 25280 out of 73493 - 34.397833807301375 % 50670 out of 73493 - 68.9453417332263 % [ Info: 2023-01-09T15:43:34.479 [ Info: End reading NetCDF file 30.817044 seconds (14.15 M allocations: 2.510 GiB, 0.87% gc time) [ Info: Number of possible duplicates: 139 [ Info: Percentage of duplicates: 0.01% [ Info: Checking ranges for dimensions and observations minimum and maximum of obs. dimension 1: (26.382999420166016, 41.763248443603516) minimum and maximum of obs. dimension 2: (40.16600036621094, 47.24300003051758) minimum and maximum of obs. dimension 3: (0.0, 1682.0) minimum and maximum of obs. dimension 4: (DateTime("1970-03-04T00:00:00"), DateTime("2001-12-25T00:00:00")) minimum and maximum of data: (0.0, 738.2000122070312) [ Info: Computing weights using 1 CPU thread(s) extrema(diagR) = (0.007950706584645853, 1.0) [ Info: Vert. correlation length at z=0.0: 13.008128 β Warning: Too few data. Will use guesses (np = 9, RLz = 38.480000000000004, ) β @ DIVAnd C:\Users\Vostro.julia\packages\DIVAnd\SijZ2\src\fit.jl:630 [ Info: Vert. correlation length at z=5.0: 38.480000000000004 [ Info: Vert. correlation length at z=10.0: 19.262496000000002 β Warning: Too few data. Will use guesses (np = 4, RLz = 51.44, ) β @ DIVAnd C:\Users\Vostro.julia\packages\DIVAnd\SijZ2\src\fit.jl:630 [ Info: Vert. correlation length at z=20.0: 51.44 [ Info: Vert. correlation length at z=30.0: 22.605119999999996 [ Info: Vert. correlation length at z=40.0: 21.415919999999993 [ Info: Vert. correlation length at z=50.0: 25.694208000000003 [ Info: Vert. correlation length at z=75.0: 31.437503999999997 [ Info: Vert. correlation length at z=100.0: 27.547967999999994 [ Info: Vert. correlation length at z=125.0: 31.3984 [ Info: Vert. correlation length at z=150.0: 39.513600000000004 [ Info: Vert. correlation length at z=200.0: 53.77535999999999 [ Info: Vert. correlation length at z=250.0: 96.41563199999999 [ Info: starting DIVA computations for Summer [ Info: 2023-01-09T15:44:26.508 [ Info: Will write results in C:/Users/Vostro/Documents/my_project_dir_2023/2023/Water_body_dissolved_oxygen_concentration_ALLBS_Summer_fitvertHCL_60km.nc ERROR: LoadError: HTTP.Exceptions.StatusError(500, "GET", "/collection/P35/current/EPC00002/", HTTP.Messages.Response: """ HTTP/1.1 500 Internal Server Error Date: Mon, 09 Jan 2023 13:41:58 GMT Server: Apache X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Access-Control-Allow-Origin: * Content-Length: 533 Connection: close Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@bodc.ac.uk to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
""") Stacktrace: [1] (::HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}})(stream::HTTP.Streams.Stream{HTTP.Messages.Response, HTTP.ConnectionPool.Connection}; status_exception::Bool, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.ExceptionRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\ExceptionRequest.jl:16 [2] #1#2 @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\TimeoutRequest.jl:17 [inlined] [3] (::HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}})(req::HTTP.Messages.Request; proxy::Nothing, socket_type::Type, socket_type_tls::Type, readtimeout::Int64, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.ConnectionRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\ConnectionRequest.jl:111 [4] (::HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}})(req::HTTP.Messages.Request; canonicalize_headers::Bool, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.CanonicalizeRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\CanonicalizeRequest.jl:17 [5] (::Base.var"#88#90"{Base.var"#88#89#91"{ExponentialBackOff, HTTP.RetryRequest.var"#3#6"{Int64, HTTP.Messages.Request, Base.RefValue{Int64}}, HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}})(args::HTTP.Messages.Request; kwargs::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ Base .\error.jl:309 [6] (::HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}})(req::HTTP.Messages.Request; retry::Bool, retries::Int64, retry_non_idempotent::Bool, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.RetryRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\RetryRequest.jl:60 [7] (::HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}})(req::HTTP.Messages.Request; cookies::Bool, cookiejar::HTTP.Cookies.CookieJar, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.CookieRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\CookieRequest.jl:42 [8] (::HTTP.ContentTypeDetection.var"#1#3"{HTTP.ContentTypeDetection.var"#1#2#4"{HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}}}})(req::HTTP.Messages.Request; detect_content_type::Bool, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.ContentTypeDetection C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\ContentTypeRequest.jl:23 [9] (::HTTP.BasicAuthRequest.var"#1#3"{HTTP.BasicAuthRequest.var"#1#2#4"{HTTP.ContentTypeDetection.var"#1#3"{HTTP.ContentTypeDetection.var"#1#2#4"{HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}}}}}})(req::HTTP.Messages.Request; basicauth::Bool, kw::Base.Pairs{Symbol, Union{Nothing, Int64}, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :decompress, :verbose), Tuple{Nothing, Nothing, Int64}}}) @ HTTP.BasicAuthRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\BasicAuthRequest.jl:22 [10] (::HTTP.DefaultHeadersRequest.var"#1#3"{HTTP.DefaultHeadersRequest.var"#1#2#4"{HTTP.BasicAuthRequest.var"#1#3"{HTTP.BasicAuthRequest.var"#1#2#4"{HTTP.ContentTypeDetection.var"#1#3"{HTTP.ContentTypeDetection.var"#1#2#4"{HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}}}}}}}})(req::HTTP.Messages.Request; iofunction::Nothing, decompress::Nothing, kw::Base.Pairs{Symbol, Int64, Tuple{Symbol}, NamedTuple{(:verbose,), Tuple{Int64}}}) @ HTTP.DefaultHeadersRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\DefaultHeadersRequest.jl:47 [11] (::HTTP.RedirectRequest.var"#1#4"{HTTP.RedirectRequest.var"#1#2#5"{HTTP.DefaultHeadersRequest.var"#1#3"{HTTP.DefaultHeadersRequest.var"#1#2#4"{HTTP.BasicAuthRequest.var"#1#3"{HTTP.BasicAuthRequest.var"#1#2#4"{HTTP.ContentTypeDetection.var"#1#3"{HTTP.ContentTypeDetection.var"#1#2#4"{HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}}}}}}}}}})(req::HTTP.Messages.Request; redirect::Bool, redirect_limit::Int64, redirect_method::Nothing, forwardheaders::Bool, response_stream::Nothing, kw::Base.Pairs{Symbol, Int64, Tuple{Symbol}, NamedTuple{(:verbose,), Tuple{Int64}}}) @ HTTP.RedirectRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\RedirectRequest.jl:25 [12] #1#2 @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\DebugRequest.jl:22 [inlined] [13] (::HTTP.MessageRequest.var"#1#3"{HTTP.MessageRequest.var"#1#2#4"{HTTP.DebugRequest.var"#1#4"{HTTP.DebugRequest.var"#1#2#5"{HTTP.RedirectRequest.var"#1#4"{HTTP.RedirectRequest.var"#1#2#5"{HTTP.DefaultHeadersRequest.var"#1#3"{HTTP.DefaultHeadersRequest.var"#1#2#4"{HTTP.BasicAuthRequest.var"#1#3"{HTTP.BasicAuthRequest.var"#1#2#4"{HTTP.ContentTypeDetection.var"#1#3"{HTTP.ContentTypeDetection.var"#1#2#4"{HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}}}}}}}}}}}}}})(method::String, url::URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, body::Vector{UInt8}; response_stream::Nothing, http_version::VersionNumber, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ HTTP.MessageRequest C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\MessageRequest.jl:17 [14] #1 @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\clientlayers\MessageRequest.jl:15 [inlined] [15] request(stack::HTTP.MessageRequest.var"#1#3"{HTTP.MessageRequest.var"#1#2#4"{HTTP.DebugRequest.var"#1#4"{HTTP.DebugRequest.var"#1#2#5"{HTTP.RedirectRequest.var"#1#4"{HTTP.RedirectRequest.var"#1#2#5"{HTTP.DefaultHeadersRequest.var"#1#3"{HTTP.DefaultHeadersRequest.var"#1#2#4"{HTTP.BasicAuthRequest.var"#1#3"{HTTP.BasicAuthRequest.var"#1#2#4"{HTTP.ContentTypeDetection.var"#1#3"{HTTP.ContentTypeDetection.var"#1#2#4"{HTTP.CookieRequest.var"#1#5"{HTTP.CookieRequest.var"#1#2#6"{HTTP.RetryRequest.var"#1#4"{HTTP.RetryRequest.var"#1#2#5"{HTTP.CanonicalizeRequest.var"#1#3"{HTTP.CanonicalizeRequest.var"#1#2#4"{HTTP.ConnectionRequest.var"#1#7"{HTTP.ConnectionRequest.var"#1#2#8"{HTTP.TimeoutRequest.var"#1#6"{HTTP.TimeoutRequest.var"#1#2#7"{HTTP.ExceptionRequest.var"#1#3"{HTTP.ExceptionRequest.var"#1#2#4"{typeof(HTTP.StreamRequest.streamlayer)}}}}}}}}}}}}}}}}}}}}}}}}, method::String, url::String, h::Vector{Pair{String, String}}, b::Vector{UInt8}, q::Nothing; headers::Vector{Pair{String, String}}, body::Vector{UInt8}, query::Nothing, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ HTTP C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\HTTP.jl:417 [16] request(stack::Function, method::String, url::String, h::Vector{Pair{String, String}}, b::Vector{UInt8}, q::Nothing) @ HTTP C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\HTTP.jl:415 [17] #request#16 @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\HTTP.jl:277 [inlined] [18] request (repeats 2 times) @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\HTTP.jl:275 [inlined] [19] #get#34 @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\HTTP.jl:472 [inlined] [20] get @ C:\Users\Vostro.julia\packages\HTTP\VAOuj\src\HTTP.jl:472 [inlined] [21] DIVAnd.Vocab.Concept(url::String) @ DIVAnd.Vocab C:\Users\Vostro.julia\packages\DIVAnd\SijZ2\src\Vocab.jl:141 [22] resolve(urn::String) @ DIVAnd.Vocab C:\Users\Vostro.julia\packages\DIVAnd\SijZ2\src\Vocab.jl:119 [23] SDNMetadata(metadata::OrderedDict{String, Any}, filename::String, varname::String, lonr::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, latr::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}; field::Nothing, default_field_min::Nothing, default_field_max::Nothing, url_path::Nothing) @ DIVAnd C:\Users\Vostro.julia\packages\DIVAnd\SijZ2\src\SDNMetadata.jl:84 [24] SDNMetadata(metadata::OrderedDict{String, Any}, filename::String, varname::String, lonr::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, latr::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}) @ DIVAnd C:\Users\Vostro.julia\packages\DIVAnd\SijZ2\src\SDNMetadata.jl:69 [25] top-level scope @ C:\Users\Vostro\Documents\my_project_dir_2023\O2_AllSeason_ALLBS_fitvertHCL.jl:363 [26] include(fname::String) @ Base.MainInclude .\client.jl:476 [27] top-level scope @ REPL[3]:1 in expression starting at C:\Users\Vostro\Documents\my_project_dir_2023\O2_AllSeason_ALLBS_fitvertHCL.jl:363