Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2468

System.ArgumentException: ReadResult does not contain valid MutationToken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.1
    • 3.0.0
    • library
    • 1

    Description

      Following the basic pattern for MutationToken support with QueryAsync does not seem to work, and instead produces System.ArgumentException: ReadResult does not contain valid MutationToken.

       

      var upsertResult = await collection.UpsertAsync("airline_pca", new { callsign = "PLAYGROUND-AIR", type = "airline", country="United States", iata="Q0", icao="PCA", id=8675309, name="Playground Air"  });                
       
      // create mutation state from mutation results
      var state = MutationState.From(upsertResult);                
       
      // use mutation state with query option
      var result = await cluster.QueryAsync<dynamic>(
                          "SELECT x.* FROM `travel-sample` WHERE icao=$icao",
                          options => options.Parameter("icao", "PCA").ConsistentWith(state)
                      );
      
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              richard.ponton Richard Ponton
              richard.ponton Richard Ponton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty