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

Graceful error handling for missing chats #2

Open
Voronchuk opened this issue Oct 14, 2019 · 0 comments
Open

Graceful error handling for missing chats #2

Voronchuk opened this issue Oct 14, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Voronchuk
Copy link
Contributor

Error log for debugging:

[error] GenServer Instafoto.Bot.Telegram terminating
** (WithClauseError) no with clause matching: {:error, %Nadia.Model.Error{reason: "Bad Request: chat not found"}}
    (botlead) lib/botlead/bot/adapter/telegram.ex:35: Botlead.Bot.Adapter.Telegram.send_message/4
    (instafoto) lib/instafoto/bot/telegram.ex:6: Instafoto.Bot.Telegram.handle_cast/2
    (stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
    (stdlib) gen_server.erl:711: :gen_server.handle_msg/6
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: {:"$gen_cast", {:send_message, "185145043", "*Shoot* from Viacheslav V.: 0,-\n\n0, flexible time\n\n\n\n\n", [parse_mode: "Markdown", reply_markup: %{inline_keyboard: [[%{callback_data: "/invites/41/accept", text: "Accept"}, %{callback_data: "/invites/41/decline", text: "Decline"}]]}]}}
State: %{clients: %{}, last_update: 0, listener: nil, poll_delay: 600, poll_limit: 100, poll_timer: #Reference<0.3203458176.2576351235.214485>, processed_messages: []}
[info] Starting polling of Telegram bot updates...
@Voronchuk Voronchuk added the bug Something isn't working label Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant