Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Improper documentation -> Error when trying to check if a bucket exists before creating one

Abierto
#254 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
csharp
Área
api

Línea de trabajo

Comienza con la configuración de DI usando Client, SupabaseOptions y las llamadas Storage.GetBucket y Storage.CreateBucket; después, compárala con el ejemplo documentado de InitializeAsync. Verifica si la inicialización o las credenciales explican el error de análisis XML/HTML; se considera terminado cuando la causa y la configuración requerida están documentadas con un ejemplo completo de C# de principio a fin.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Bug report

Receiving Unexpected character encountered while parsing value: <. Path '', line 0, position 0 when calling await client.Storage.GetBucket(bucketName); or client.Storage.CreateBucket(bucketName, options);

The BucketUpsertOptions feature the 5mb file limit and the public flag set to true

My client is setup as below:

builder.Services.AddScoped<Client>(_ =>
    new Client(builder.Configuration["Supabase:Url"], builder.Configuration["Supabase:AccessKey"],
    new SupabaseOptions
    {
        AutoRefreshToken = true,
        AutoConnectRealtime = true,
    })
);

AccessKeys were tried, in order, secret keys, public API key (JWT-like from my project) etc. Every. Single. Key. I. Could. Found. Nothing works.

I'm expected to receive an actual error object, from a JSON-based communication system, but it seems I'm hitting some WCF/ASMX type of enpoint that communicates via XML, based on the error.

From my point of view, I'm probably gettings some HTML page prompting me to log in for some reason, maybe I didn't used the proper god-knows-what API key hidden somewhere, after nearly 4 hours of searching through the dashboard.

The available documentation doesn't help either, with examples that don't specify anything else, apart from the actual line on how to get the buckets, create ones etc. There is not a single start-end example, if there are any steps that need to be taken into account.

I saw that in the "classical example" of initializing the client, there is an InitializeAsync call, that is missing in the DI (MAUI like) approach. I feel that there's another step missing from over there and it just kills the functionality to be used from C#, that I had to save files as base64 strings in the database, which is not nice at all.

  • OS: Windows
  • Version of Supabase: 1.1.1
  • Version of Supabase.Storage: tested the transient 2.0.2, then manually installed 2.4.1
  • Project Type: DotNet WebApi - net8.0
Lenguaje dominante
C#
Estrellas
700
Forks
105
Merge medio
1 d 21 h
PR fusionados (30 d)
41

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de supabase/supabase-csharp

Todos los issues de supabase/supabase-csharp

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.