Skip to content

After updating to version 0.8.0 #56

@ViniciusLucas14

Description

@ViniciusLucas14

Error in question: InvalidOperationException: Cannot get the value of a token type 'Number' as a string.

at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo1 jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at B2Net.Http.ResponseParser.<ParseResponse>d__01.MoveNext()
at B2Net.Files.d__6.MoveNext()
at VitrineApi.Infrastructure.Image.BackblazeImageSender.d__9.MoveNext() in C:\Users\Vinicius\Desktop\project\vitrine-api\VitrineApi\src\VitrineApi.Infrastructure\Image\BackblazeImageSender.cs:line 122

 var b2Client = new B2Client(_backblazeConfiguration);
 await b2Client.Authorize();
 b2Files = await b2Client.Files.GetListWithPrefixOrDemiliter(
  bucketId: _backblazeConfiguration.BucketId,
  prefix: directoryPrefix
);

GetListWithPrefixOrDemiliter returning error, I didnt cange anything from previous version to new version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions