The "authority" section of a URL is allowed to be empty. In particular if the URL scheme is "file://", the authority section is expected to be empty. This is a bug: https://github.com/ziglang/zig/blob/6218e4004608000ba2e42e07ed1bd56745626820/lib/std/Uri.zig#L126 Thanks.