Skip to content

Update method - no Route matched with those values #57

@Cizzl

Description

@Cizzl

Bug report

Describe the bug

I followed the instruction of the docs. When I try to use the Update method I get this error message:

{Postgrest.RequestException: no Route matched with those values
   at Postgrest.Helpers.MakeRequest(ClientOptions clientOptions, HttpMethod method, String url, JsonSerializerSettings serializerSettings, Object data, Dictionary`2 headers, CancellationToken cancellationToken)

I have no issue with inserting or selecting. Also turned of my policies to test it.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

ModeledResponse<Product> response = await Client.From<Product>().Get();
Product model = response.Models.FirstOrDefault();
model.Note = "Test";
ModeledResponse<Product> result = await model.Update<Product>();

Expected behavior

Value should have changed.

System information

  • OS: Windows / Android
  • Executing with .Net Maui (.Net 6)
  • Version of supabase-csharp: 0.6.2
  • Version of postgrest-csharp: 3.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions