Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Падает метод Video.AddToAlbum #1631

Open
KlestovAlexej opened this issue Feb 22, 2025 · 0 comments
Open

Падает метод Video.AddToAlbum #1631

KlestovAlexej opened this issue Feb 22, 2025 · 0 comments

Comments

@KlestovAlexej
Copy link

KlestovAlexej commented Feb 22, 2025

Вызов.
apiVideo.Video.AddToAlbum(ownerId: club, videoId: video.Id!.Value, ["55, 56"], targetId: club);

Но само видео в итоге попадает в 2 листа успешно.

System.ArgumentException: Accessed JArray values with invalid key value: "count". Int32 array index expected.
at Newtonsoft.Json.Linq.JArray.get_Item(Object key)
at VkNet.Utils.JsonConverter.VkCollectionJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at VkNet.VkApi.Call[T](String methodName, VkParameters parameters, Boolean skipAuthorization, JsonConverter[] jsonConverters)
at VkNet.Categories.VideoCategory.AddToAlbum(Int64 ownerId, Int64 videoId, IEnumerable1 albumIds, Nullable1 targetId, Nullable`1 albumId)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant