i can't add fltahub repo in alpine

I did the installation as it says on the flatpak site and it gives me this: flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
F: Invalid proxy URI ‘’
**
GLib-GIO:ERROR:…/gio/gsocketclient.c:1982:g_socket_client_enumerator_callback: assertion failed: (data->error_info->best_er
ror)
Bail out! GLib-GIO:ERROR:…/gio/gsocketclient.c:1982:g_socket_client_enumerator_callback: assertion failed: (data->error_inf
o->best_error)
fish: Job 1, ‘flatpak remote-add --user --if-…’ terminated by signal SIGABRT (Abort)

I’m having the same issue:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

F: Invalid proxy URI ‘’

**

GLib-GIO:ERROR:…/gio/gsocketclient.c:1982:g_socket_client_enumerator_callback: assertion failed: (data->error_info->best_error)

Bail out! GLib-GIO:ERROR:…/gio/gsocketclient.c:1982:g_socket_client_enumerator_callback: assertion failed: (data->error_info->best_error)

Aborted

Not sure where to go from here.

The best is to contact Alpine. This is a problem with Flathub.

I found the solution. It needs to be run with elevated privileges. Ran with sudo and it worked.