Skip to content

Nothing happens until a button is pressed multiple times #29

@Quintasan

Description

@Quintasan

In my say_hello.yml.erb file I have the following reply

- reply_type: text
  text: "Nasz profil na Facebooku domyślnie obsługuje bot przyjmujący rezerwacje. Jeżeli nie uda mu się Ciebie obsłużyć to kontrolę przejmie ktoś z załogi Incognito :). Co chcesz zrobić?"
  buttons:
    - type: payload
      text: "Rezerwacja stolika."
      payload: "reservation"
    - type: payload
      text: "Mam inne pytanie."
      payload: "other"

The options do show up, clicking them sends the message but nothing happens in my bot for some reason.

screenshot_20190210_145625

The only thing I get in the Stealth server log is:

14:52:03 sidekiq.1 | [previous_session] User 1023058087818337: setting to hello->say_hello
14:52:03 sidekiq.1 | [session] User 1023058087818337: setting session to hello->get_selection
14:52:03 sidekiq.1 | 2019-02-10T13:52:03.867Z 21448 TID-grr2o3b8g Stealth::Services::HandleMessageJob JID-7810baeeb7d061e9850f1c8e INFO: done: 1.923 sec
14:52:04 web.1     | [incoming] Received webhook from facebook
14:52:04 web.1     | [incoming] Received webhook from facebook
14:52:09 web.1     | [incoming] Received webhook from facebook

Only after clicking it more than once (sometime it takes 2 time, sometimes I have to click on it over 9000 times) something does happen:

image

14:58:05 web.1     | [incoming] Received webhook from facebook
14:58:05 sidekiq.1 | 2019-02-10T13:58:05.413Z 21448 TID-grr2nrzqc Stealth::Services::HandleMessageJob JID-6aa3a86387ae9ae75a70056f INFO: start
14:58:05 sidekiq.1 | I, [2019-02-10T14:58:05.414264 #21448]  INFO -- : ---------------------------------------DUPA:
14:58:05 sidekiq.1 | [previous_session] User 1023058087818337: skipping setting to hello->get_selection because it is the same as current_session
14:58:05 sidekiq.1 | [session] User 1023058087818337: setting session to hello->get_selection

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions