-
Notifications
You must be signed in to change notification settings - Fork 226
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
java.lang.IllegalStateException: no mapping for the type:audio_playlist при попытке получить список новостей #542
Comments
Я исправил ошибку, заменив некоторые классы и функции на свои собственные, и понизив версию API в NewApiRequest до 5.81.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Пытаюсь получить список новостей следующим образом:
Получаю следующую ошибку:
error
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: no mapping for the type:audio_playlist
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.Gson.fromJson(Gson.java:932)
at com.vk.sdk.api.newsfeed.NewsfeedService.newsfeedGet$lambda$10(NewsfeedService.kt:671)
at com.vk.sdk.api.newsfeed.NewsfeedService.$r8$lambda$pl5eceGaftfCY1-KnxwJ_eXUuTk(Unknown Source:0)
at com.vk.sdk.api.newsfeed.NewsfeedService$$ExternalSyntheticLambda8.parseResponse(Unknown Source:0)
at com.vk.sdk.api.NewApiRequest.parseResponse(Unknown Source:7)
at com.vk.sdk.api.NewApiRequest.parse(NewApiRequest.kt:48)
at com.vk.api.sdk.chain.MethodChainCall.parseResult(MethodChainCall.kt:98)
at com.vk.api.sdk.chain.MethodChainCall.runRequest(MethodChainCall.kt:82)
at com.vk.api.sdk.chain.MethodChainCall.call(MethodChainCall.kt:78)
at com.vk.api.sdk.chain.ValidationHandlerChainCall.call(ValidationHandlerChainCall.kt:45)
at com.vk.api.sdk.chain.ApiMethodPriorityChainCall.call(ApiMethodPriorityChainCall.kt:28)
at com.vk.api.sdk.chain.InvalidCredentialsObserverChainCall.callWithAuthCheck(InvalidCredentialsObserverChainCall.kt:45)
at com.vk.api.sdk.chain.InvalidCredentialsObserverChainCall.call(InvalidCredentialsObserverChainCall.kt:41)
at com.vk.api.sdk.chain.TooManyRequestRetryChainCall.call(TooManyRequestRetryChainCall.kt:46)
at com.vk.api.sdk.chain.RateLimitReachedChainCall.call(RateLimitReachedChainCall.kt:34)
at com.vk.api.sdk.chain.SectionTemporaryUnavailableChainCall.call(SectionTemporaryUnavailableChainCall.kt:23)
at com.vk.api.sdk.chain.InternalErrorChainCall.call(InternalErrorChainCall.kt:23)
at com.vk.api.sdk.chain.ErrorRetryChainCall.call(ErrorRetryChainCall.kt:47)
at com.vk.api.sdk.VKApiManager.executeWithExceptionAdjust(VKApiManager.kt:163)
at com.vk.api.sdk.VKApiManager.execute(VKApiManager.kt:112)
at com.vk.api.sdk.requests.VKRequest.onExecute(VKRequest.kt:112)
at com.vk.api.sdk.internal.ApiCommand.execute(ApiCommand.kt:46)
at com.vk.api.sdk.VK.executeSync(VK.kt:201)
at com.vk.api.sdk.VK.execute$lambda$4(VK.kt:213)
at com.vk.api.sdk.VK.$r8$lambda$thDoqhqvvqs8RMBZj0ShwHF6oJY(Unknown Source:0)
at com.vk.api.sdk.VK$$ExternalSyntheticLambda0.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.IllegalStateException: no mapping for the type:audio_playlist
at com.vk.sdk.api.newsfeed.dto.NewsfeedNewsfeedItemDto$Deserializer.deserialize(NewsfeedNewsfeedItemDto.kt:1862)
at com.vk.sdk.api.newsfeed.dto.NewsfeedNewsfeedItemDto$Deserializer.deserialize(NewsfeedNewsfeedItemDto.kt:1844)
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.Gson.fromJson(Gson.java:932)
at com.vk.sdk.api.newsfeed.NewsfeedService.newsfeedGet$lambda$10(NewsfeedService.kt:671)
at com.vk.sdk.api.newsfeed.NewsfeedService.$r8$lambda$pl5eceGaftfCY1-KnxwJ_eXUuTk(Unknown Source:0)
at com.vk.sdk.api.newsfeed.NewsfeedService$$ExternalSyntheticLambda8.parseResponse(Unknown Source:0)
at com.vk.sdk.api.NewApiRequest.parseResponse(Unknown Source:7)
at com.vk.sdk.api.NewApiRequest.parse(NewApiRequest.kt:48)
at com.vk.api.sdk.chain.MethodChainCall.parseResult(MethodChainCall.kt:98)
at com.vk.api.sdk.chain.MethodChainCall.runRequest(MethodChainCall.kt:82)
at com.vk.api.sdk.chain.MethodChainCall.call(MethodChainCall.kt:78)
at com.vk.api.sdk.chain.ValidationHandlerChainCall.call(ValidationHandlerChainCall.kt:45)
at com.vk.api.sdk.chain.ApiMethodPriorityChainCall.call(ApiMethodPriorityChainCall.kt:28)
at com.vk.api.sdk.chain.InvalidCredentialsObserverChainCall.callWithAuthCheck(InvalidCredentialsObserverChainCall.kt:45)
at com.vk.api.sdk.chain.InvalidCredentialsObserverChainCall.call(InvalidCredentialsObserverChainCall.kt:41)
at com.vk.api.sdk.chain.TooManyRequestRetryChainCall.call(TooManyRequestRetryChainCall.kt:46)
at com.vk.api.sdk.chain.RateLimitReachedChainCall.call(RateLimitReachedChainCall.kt:34)
at com.vk.api.sdk.chain.SectionTemporaryUnavailableChainCall.call(SectionTemporaryUnavailableChainCall.kt:23)
at com.vk.api.sdk.chain.InternalErrorChainCall.call(InternalErrorChainCall.kt:23)
at com.vk.api.sdk.chain.ErrorRetryChainCall.call(ErrorRetryChainCall.kt:47)
at com.vk.api.sdk.VKApiManager.executeWithExceptionAdjust(VKApiManager.kt:163)
at com.vk.api.sdk.VKApiManager.execute(VKApiManager.kt:112)
at com.vk.api.sdk.requests.VKRequest.onExecute(VKRequest.kt:112)
at com.vk.api.sdk.internal.ApiCommand.execute(ApiCommand.kt:46)
at com.vk.api.sdk.VK.executeSync(VK.kt:201)
at com.vk.api.sdk.VK.execute$lambda$4(VK.kt:213)
at com.vk.api.sdk.VK.$r8$lambda$thDoqhqvvqs8RMBZj0ShwHF6oJY(Unknown Source:0)
at com.vk.api.sdk.VK$$ExternalSyntheticLambda0.run(Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered: