-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Describe the bug
Exception is thrown when using invoking RPC call.
To Reproduce
- Create procedure via supabase SQL Editor
CREATE OR REPLACE FUNCTION test(
inputText text) RETURNS text AS
$$
SELECT inputText;
$$ LANGUAGE 'sql';
- Run supabase-csharp
const string URL = "";
const string KEY = "";
var client = new Supabase.Client(URL, KEY, new Supabase.SupabaseOptions { AutoConnectRealtime = true, });
await client.InitializeAsync();
var dict = new Dictionary<string, object>();
dict.Add("inputText ", "Hello World!");
var response = await client.Rpc("public.test", dict);
- See the exception
Postgrest.RequestException: No API key found in request
at Postgrest.Helpers.MakeRequest(ClientOptions clientOptions, HttpMethod method, String url, JsonSerializerSettings serializerSettings, Object data, Dictionary`2 headers, CancellationToken cancellationToken)
at UserQuery.Main() in C:\path\to\file:line 10
Expected behavior
Invoke RPC call successful.
Screenshots
N/A
System information
- OS: Windows
- Version of supabase-charp: 0.6.1
Additional context
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working