VKCOM / vk-java-sdk

Java library for working with VK API
MIT License
294 stars 155 forks source link

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 #277

Open PukPukov opened 1 year ago

PukPukov commented 1 year ago

Следующий код, почему-то, выдаёт ошибку. 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