Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g_uri_join_internal assertion error on Uri::build #1633

Open
d47081 opened this issue Jan 18, 2025 · 0 comments
Open

g_uri_join_internal assertion error on Uri::build #1633

d47081 opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@d47081
Copy link

d47081 commented Jan 18, 2025

Not sure if this is bug,

Uri::build(
    UriFlags::NONE,
    "gemini",
    None,
    Some("tlgs.one"),
    -1,
    "search",  // < requires slash at begin (e.g. /search)
    Some(&Uri::escape_string(query, None, false)),
    None,
)
GLib-CRITICAL **: 08:37:15.596: g_uri_join_internal: assertion 'host == NULL || (path[0] == '\0' || path[0] == '/')' failed
thread 'main' panicked

Only if the begining slash not provided for path

[dependencies.gtk]
package = "gtk4"
version = "0.9.4"
features = ["gnome_46"]
@d47081 d47081 added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant