Skip to content

Bug: Cliente Flutter no Windows falha com erro 400 (plain HTTP request sent to HTTPS port) #1314

@Firetool-Enviroment

Description

@Firetool-Enviroment
  • Cliente oficial falha com erro "400 The plain HTTP request was sent to HTTPS port"
  • Socket direto com IP funciona perfeitamente
  • Testado nas versões 2.12.0, 2.10.2 e 2.10.0
    Processo realizado para chegar ao resultado
  1. Flutter 3.41.2 no Windows 10/11
  2. Adicionar supabase_flutter: 2.10.0 ou 2.10.2 2.12.0 -- mesmo erro em todas
  3. Chamar Supabase.initialize() e signUp()
  4. Erro aparece: '400 The plain HTTP request was sent to HTTPS port'

Versões:
Flutter: 3.41.2
supabase_flutter: 2.12.0
SO: Windows 11
Exception capturada: OSError (OS Error: Este host não é conhecido, errno = 11001)

Main exemplo:
Future main() async {
WidgetsFlutterBinding.ensureInitialized();

await Supabase.initialize(
url: SupabaseConfig.supabaseUrl,
anonKey: SupabaseConfig.supabaseAnonKey,
);

final supabase = Supabase.instance.client;

runApp(
AppWidget(
supClient: supabase,
),
);
}

SignUp:
Future signUp({
required String email,
required String password,
}) async {
try {
await _client.auth.signUp(
email: email,
password: password,
);
} on AuthException catch (e) {
throw _mapSignUpError(e);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions