You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but file("JuliaLang/METADATA.jl", "AWS/url").content.value
gives "Z2l0Oi8vZ2l0aHViLmNvbS9KdWxpYUNsb3VkL0FXUy5qbC5naXQK\n"
and
base64decode("Z2l0Oi8vZ2l0aHViLmNvbS9KdWxpYUNsb3VkL0FXUy5qbC5naXQK\n")
ArgumentError: incorrect base64 format, block must be at least 2 and at most 4 bytes
in b64decode!(::Array{UInt8,1}, ::Array{UInt8,1}) at ./base64.jl:68
in read(::Base64DecodePipe, ::Type{UInt8}) at ./base64.jl:192
in readbytes!(::Base64DecodePipe, ::Array{UInt8,1}, ::Int64) at ./io.jl:345
in read(::Base64DecodePipe, ::Int64) at ./io.jl:368
in base64decode(::String) at ./base64.jl:203
Out of the 1000 files I downloaded, about a third gave this error. I'm not sure if this is an issue with how the Content gets parsed internally and need something deeper. For my own purposes, I just fixed the strings by adding a = before the \n.
The text was updated successfully, but these errors were encountered:
I was using
GitHub.file()
to download some of theurl
files fromMetadata.jl
and found some did notbase64decode
correctly. Example:file("JuliaLang/METADATA.jl", "ACME/url")
produces
but
file("JuliaLang/METADATA.jl", "AWS/url").content.value
gives
"Z2l0Oi8vZ2l0aHViLmNvbS9KdWxpYUNsb3VkL0FXUy5qbC5naXQK\n"
and
Out of the 1000 files I downloaded, about a third gave this error. I'm not sure if this is an issue with how the Content gets parsed internally and need something deeper. For my own purposes, I just fixed the strings by adding a
=
before the\n
.The text was updated successfully, but these errors were encountered: