URLComponents.url is nil May 4, 2023 by Tarik It looks like path parameter’s string must start with /. So change "auth/login" to "/auth/login" will do.