vk-java-sdk icon indicating copy to clipboard operation
vk-java-sdk copied to clipboard

com.vk.api.sdk.exceptions.ApiParamException: One of the parameters specified was missing or invalid (100): One of the parameters specified was missing or invalid: poll_id is incorrect

Open PukPukov opened this issue 2 years ago • 0 comments

Следующий код, почему-то, выдаёт ошибку. Poll id взят из ссылки для экспортирования.

        int ownerId = 12267802;
        int pollId = 844064877;

        HttpTransportClient client = HttpTransportClient.getInstance();
        VkApiClient apiClient = new VkApiClient(client);
        UserActor actor = new UserActor(USER_ID, ACCESS_TOKEN);

        List<Answer> answers = apiClient
            .polls()
            .getById(actor, pollId)
            .execute() // вот тут ошибка 

com.vk.api.sdk.exceptions.ApiParamException: One of the parameters specified was missing or invalid (100): One of the parameters specified was missing or invalid: poll_id is incorrect

PukPukov avatar Apr 20 '23 13:04 PukPukov