Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I get CS1661 nad CS1678 errors when returning Results.NotFound(); in app.MapGet.

Here's the code:

app.MapGet("/databases", async (Supabase.Client client) =>
{
    var response = await client
        .From<Database>()
        .Get();

    var databases = response.Models.FirstOrDefault();

    if (databases is null)
    {
        return Results.NotFound();
    }

    return databases;
});

In video crash from the docs there are no such issues even though return object is identical...

Any ideas?

You must be logged in to vote

Replies: 1 comment

Comment options

That seems like more of an ASP question than a supabase question - I imagine the API has changed a bit for ASP since the video was made... maybe check here?

https://stackoverflow.com/questions/77270839/some-minimal-api-endpoints-not-returning-values-warning-asp0016-do-not-return

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.