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

"poll_answer" is throwing "Unauthorized incoming call from undefined" when ChatIds restriction is active #314

Closed
Xilef12000 opened this issue Jun 12, 2023 · 4 comments

Comments

@Xilef12000
Copy link

Xilef12000 commented Jun 12, 2023

When using the poll_answer mode of the event node, and having a restriction for the bot usage, by utilizing either the "User" or "ChatIds" option in the bot config, the poll_answer node only throws "Unauthorized incoming call from undefined", when i vote in a poll.
(Note: "Verbose Logging" in the bot config is enabled)

Using the poll_answer node without any restrictions to users or chatIDs works as expected, but when adding "Users" or "ChatIds" the poll_answer mode of the event node stops working. (While the receiver node still works.) When now enabling "Verbose Logging" the following error-message is thrown: "Unauthorized incoming call from undefined" when voting.

This issue might link to #2 Unauthorized incoming call from undefined and/or #80 Inline keyboard callback and auth by chat id.

@windkh
Copy link
Owner

windkh commented Jun 12, 2023

How can i reproduce it? With the poll example?

@Xilef12000
Copy link
Author

Yes, the same issue appears with the createpoll.json example.

My steps to reproduce the issue:

  1. imported createpoll.json
  2. created brand new bot
  3. inserted Token into Properties
  4. testing:
    1. text /newpoll1 to bot
    2. bot logs message in debug
    3. bot creates poll
    4. vote in poll
    5. bot logs your vote in debug
  5. added chatID into "ChatIds" in Properties
  6. testing:
    1. text /newpoll1 to bot
    2. bot logs message in debug
    3. bot creates poll
    4. vote in poll
    5. bot doesn't register vote in debug
  7. enabled "Verbose Logging" in Properties
  8. testing:
    1. text /newpoll1 to bot
    2. bot logs message in debug
    3. bot creates poll
    4. vote in poll
    5. getting "Unauthorized incoming call from undefined" in debug

@windkh
Copy link
Owner

windkh commented Jun 12, 2023

Thanks for reporting I will check this out

@windkh windkh closed this as completed in 2921bc1 Jun 12, 2023
@windkh
Copy link
Owner

windkh commented Jun 12, 2023

should be fixed in 5.1.2

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

2 participants