-
Notifications
You must be signed in to change notification settings - Fork 34
Description
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.JsonTypeInfo
1.Deserialize(Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo
1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan
1 json, JsonTypeInfo1 jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at B2Net.Http.ResponseParser.<ParseResponse>d__0
1.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