Thanks for you replay.
Based on the link you provided, I updated base code:
Pkg.activate(@__DIR__)
Pkg.add("AWS")
Pkg.instantiate() # Ensures all dependencies are installed
using AWS: @service
@service S3
@info "before creds"
awscreds = AWS.AWSCredentials(; profile=nothing)
aws_config = AWSConfig(; creds=awscreds, region="eu-central-1")
@info "after aws_config"
try
S3.list_objects("testapi";aws_config)
catch e
@info e
println("Stack trace:")
println(Base.catch_backtrace())
println(aws_config)
end
@info "after s3"
Stack trace:
WARNING: replacing module S3.
**[ Info:** before creds
**[ Info:** after aws_config
**[ Info:** MethodError(convert, (SubArray{UInt8, 1, Vector{UInt8}, Tuple{UnitRange{Int64}}, true}, UInt8[0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x20, 0x33, 0x30, 0x31, 0x20, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x50, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x0d, 0x0a, 0x78, 0x2d, 0x61, 0x6d, 0x7a, 0x2d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x61, 0x70, 0x2d, 0x73, 0x6f, 0x75, 0x74, 0x68, 0x2d, 0x31, 0x0d, 0x0a, 0x78, 0x2d, 0x61, 0x6d, 0x7a, 0x2d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2d, 0x69, 0x64, 0x3a, 0x20, 0x51, 0x57, 0x48, 0x54, 0x33, 0x51, 0x45, 0x51, 0x50, 0x35, 0x33, 0x32, 0x57, 0x51, 0x58, 0x41, 0x0d, 0x0a, 0x78, 0x2d, 0x61, 0x6d, 0x7a, 0x2d, 0x69, 0x64, 0x2d, 0x32, 0x3a, 0x20, 0x44, 0x4c, 0x62, 0x45, 0x33, 0x44, 0x75, 0x58, 0x31, 0x50, 0x6c, 0x45, 0x59, 0x75, 0x74, 0x59, 0x43, 0x59, 0x68, 0x6a, 0x6c, 0x37, 0x45, 0x4f, 0x75, 0x61, 0x76, 0x62, 0x71, 0x33, 0x39, 0x77, 0x78, 0x35, 0x77, 0x4c, 0x34, 0x36, 0x4c, 0x52, 0x68, 0x54, 0x52, 0x37, 0x66, 0x2b, 0x7a, 0x4f, 0x39, 0x49, 0x2b, 0x66, 0x47, 0x59, 0x75, 0x38, 0x59, 0x59, 0x70, 0x52, 0x4b, 0x64, 0x65, 0x6e, 0x70, 0x32, 0x63, 0x63, 0x6f, 0x63, 0x4f, 0x51, 0x57, 0x73, 0x63, 0x3d, 0x0d, 0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x78, 0x6d, 0x6c, 0x0d, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x0d, 0x0a, 0x44, 0x61, 0x74, 0x65, 0x3a, 0x20, 0x53, 0x75, 0x6e, 0x2c, 0x20, 0x32, 0x34, 0x20, 0x4e, 0x6f, 0x76, 0x20, 0x32, 0x30, 0x32, 0x34, 0x20, 0x31, 0x39, 0x3a, 0x33, 0x39, 0x3a, 0x32, 0x38, 0x20, 0x47, 0x4d, 0x54, 0x0d, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x41, 0x6d, 0x61, 0x7a, 0x6f, 0x6e, 0x53, 0x33, 0x0d, 0x0a, 0x0d, 0x0a]), 0x0000000000007c9f)
Stack trace
Union{Ptr{Nothing}, Base.InterpreterIP}[Ptr{Nothing} @0x0000000100eda61f, Ptr{Nothing} @0x0000000100eda557, Ptr{Nothing} @0x0000000100edf75b, Ptr{Nothing} @0x000000030a5ec20b, Ptr{Nothing} @0x000000030a5ec2b7, Ptr{Nothing} @0x0000000173a2c0af, Ptr{Nothing} @0x0000000173a34053, Ptr{Nothing} @0x0000000173a340fb, Ptr{Nothing} @0x00000001739e0047, Ptr{Nothing} @0x00000001739e8073, Ptr{Nothing} @0x00000001739f061b, Ptr{Nothing} @0x00000001739f8073, Ptr{Nothing} @0x00000001739f80af, Ptr{Nothing} @0x000000017382c5b3, Ptr{Nothing} @0x000000017382cd77, Ptr{Nothing} @0x00000001738201b3, Ptr{Nothing} @0x000000017382030b, Ptr{Nothing} @0x0000000100eee6ef, Ptr{Nothing} @0x000000030a2cc0fb, Ptr{Nothing} @0x00000001737f019b, Ptr{Nothing} @0x0000000173800b1b, Ptr{Nothing} @0x000000017380828b, Ptr{Nothing} @0x00000001738102bb, Ptr{Nothing} @0x000000017381806b, Ptr{Nothing} @0x00000001738180ab, Ptr{Nothing} @0x0000000100eee6ef, Ptr{Nothing} @0x000000030a2900f7, Ptr{Nothing} @0x00000001737dc19f, Ptr{Nothing} @0x00000001737dc1e3, Ptr{Nothing} @0x00000001737804f7, Ptr{Nothing} @0x000000017378846f, Ptr{Nothing} @0x0000000173790017, Ptr{Nothing} @0x000000017379004b, Ptr{Nothing} @0x000000030a0bc413, Ptr{Nothing} @0x00000001737500f3, Ptr{Nothing} @0x00000001737680c7, Ptr{Nothing} @0x00000001737704d3, Ptr{Nothing} @0x0000000173778017, Ptr{Nothing} @0x000000017377804b, Ptr{Nothing} @0x000000011feb8637, Ptr{Nothing} @0x0000000309f9c073, Ptr{Nothing} @0x0000000173710b57, Ptr{Nothing} @0x0000000304a5814f, Ptr{Nothing} @0x0000000304a58223, Ptr{Nothing} @0x0000000100efe31f, Ptr{Nothing} @0x0000000100efdd1f, Ptr{Nothing} @0x0000000100efc9d7, Ptr{Nothing} @0x0000000100efcccb, Ptr{Nothing} @0x0000000100efcff3, Base.InterpreterIP in top-level CodeInfo for Main at statement 6, Ptr{Nothing} @0x0000000100f1648b, Ptr{Nothing} @0x0000000100f1620b, Ptr{Nothing} @0x0000000100f1719f, Ptr{Nothing} @0x0000000131597eb7, Ptr{Nothing} @0x0000000131121f67, Ptr{Nothing} @0x000000011f00c04b, Ptr{Nothing} @0x000000011f00c087, Ptr{Nothing} @0x0000000100efe31f, Ptr{Nothing} @0x0000000100efdd1f, Ptr{Nothing} @0x0000000100efc9d7, Ptr{Nothing} @0x0000000100efcff3, Base.InterpreterIP in top-level CodeInfo for Main at statement 0, Ptr{Nothing} @0x0000000100f1648b, Ptr{Nothing} @0x0000000100f1620b, Ptr{Nothing} @0x0000000100f1719f, Ptr{Nothing} @0x000000013d38cb2b, Ptr{Nothing} @0x000000013d2235c3, Ptr{Nothing} @0x000000013d2236cb, Ptr{Nothing} @0x000000013d311b8f, Ptr{Nothing} @0x000000013d317037, Ptr{Nothing} @0x000000013d29ae2f, Ptr{Nothing} @0x000000013d22372b, Ptr{Nothing} @0x000000013d3e40d3, Ptr{Nothing} @0x000000013d28495b, Ptr{Nothing} @0x0000000100eef12f, Ptr{Nothing} @0x000000013146df2f, Ptr{Nothing} @0x000000013146efef, Ptr{Nothing} @0x0000000130d96803, Ptr{Nothing} @0x0000000100f47c6b, Ptr{Nothing} @0x0000000100f47b77]
AWSConfig((3nbu1tyiaQ2lN0A5DYmp, WEO..., 146138512-12-31T23:59:59), "eu-central-1", "json")
**[ Info:** after s3
Wdyt?