You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@orhanmaden thanks for the bug report! The fix is available in v0.6.2. Unfortunately the change to a dynamic GetHeaders function in the v0.6.0 wasn't propagated to the Rpc calls.
Bug report
Describe the bug
Exception is thrown when using invoking RPC call.
To Reproduce
Expected behavior
Invoke RPC call successful.
Screenshots
N/A
System information
Additional context
N/A
The text was updated successfully, but these errors were encountered: