Azumi4han / safe-vk

Library with simple API for creating your own VK bot for chats in Rust 🦀
3 stars 0 forks source link

Unable to parse longPoll request: Error("missing field `is_unavailable`") #1

Closed Huterenok closed 6 months ago

Huterenok commented 8 months ago

Hi, trying to reproduce example with basic usage from README, but when i write something to bot it crashes on a server with error: thread 'tokio-runtime-worker' panicked at /home/huterok/Projects/Rust/regulyarOchka/safe-vk/src/methods.rs:193:40: Unable to parse longPoll request: Error("missing field "is_unavailable":, line: 0, column: 0) note: run with RUST_BACKTRACE=1 environment variable to display a backtrace I tried to clone repository and delete is_unavailable field from Message struct and it worked. Not making pull request as I am not so familiar with the VK api and may be wrong somewhere.

Azumi4han commented 8 months ago

Hi, thank you for your pull request and for highlighting this bug. I'm planning to fix this issue in an upcoming update, and I'll review the VK API again to ensure that similar issues do not occur.

Vas-Sferd commented 6 months ago

Bug still here. I send pull request today (upd 25.03.2024)

Azumi4han commented 6 months ago

The issue has been resolved and I'm closing this issue. For more details, see the closed pull request here: pull request. Thanks for your patience.