3sd / civicrm-chatbot

A chatbot for CiviCRM
Other
6 stars 4 forks source link

Callback URL appends characters preventing web-hook subscription on facebook #13

Closed stigsfoot closed 5 years ago

stigsfoot commented 6 years ago

I'm getting the following error when I provide the following URI - https://ict.demcloud.org/civicrm/chat/webhook/facebook

The URL couldn't be validated. Response does not match challenge, expected value="1659010898", received="1659010898\u003C!DOCTYPE ..."

screen shot 2018-09-12 at 9 43 57 am

Version CiviCRM 5.3.1.

stigsfoot commented 6 years ago

https://ict.demcloud.org/civicrm/chat/webhook/facebook?hub.mode=subscribe&hub.challenge=1109012784&hub.verify_token=da3bddc08fcf9f2f0786cd2d0b49485757e247798a74e238

stigsfoot commented 6 years ago
Message Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/platforms/demtools-civicrm-20180626/vendor/civicrm/civicrm-chatbot/vendor/symfony/http-foundation/Response.php:1276) in drupal_send_headers() (line 1490 of /var/aegir/platforms/demtools-civicrm-20180626/includes/bootstrap.inc).
stigsfoot commented 6 years ago

QQ: How do we enable this as a packaged extension via Civi/Aegir? Feel free to close this issue after answering.

michaelmcandrew commented 6 years ago

Hey there,

I'm not sure how your Aegir set up works but I presume that you have some way of specifying a release to include in the build.

If so, this is the release that you should target: https://github.com/3sd/civicrm-chatbot/releases/tag/1.0.0-beta.2