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

Serialization/Transcoding Errors Are Unhandled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.7
    • 3.0.6
    • None
    • None
    • 1
    • SDK 44: Txns, SDK 3.1, Docs

    Description

      If you use InsertAsync (haven't tried with Upsert or others) with byte[] content without specifying the legacy encoder, you the request never hits the wire and the operation eventually fails with a timeout.

              [Fact]
              public async Task Can_insert_byte_array_with_default_transcoder()
              {
                  var collection = await _fixture.GetDefaultCollection().ConfigureAwait(false);
                  var key = Guid.NewGuid().ToString();
                  await collection
                      .InsertAsync(key, Encoding.UTF8.GetBytes("hello"), options => options.Expiry(TimeSpan.FromSeconds(30)))
                      .ConfigureAwait(false);
                  using var result = await collection.GetAsync(key, options => options.Transcoder(new LegacyTranscoder()))
                      .ConfigureAwait(false);
              }
      
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty