Closed MinhMinnie closed 5 years ago
Thanks for creating this issue, @Ghostvv will get back to you about it soon.
Also I have removed your secret and page-access-token from your original issue -- you don't really want this to be publically available, as anyone can access your fb page now.
Hi, could you please add more details, did you specify your webhook
in developers.facebook.com?Does your bot receive a message? What are the logs?
@Ghostvv Yes, I have specified webhook. The bot can receive messages but it's not able to response. I captured screen where I take App secret and verify Callback URL.
Could you please paste the logs from the bot?
here is my rasa_core log: /usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds)
/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds)
/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds)
/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192, got 176 return f(*args, **kwds)
/home/minh/.local/lib/python3.6/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: The default 'Loader' for 'load(stream)' without further arguments can be unsafe. Use 'load(stream, Loader=ruamel.yaml.Loader)' explicitly if that is OK. Alternatively include the following in your code:
import warnings warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)
In most other cases you should consider using 'safe_load(stream)' data = yaml.load(stream)
could you call rasa_core.run
script with --verbose
flag
here is the result :
but you started command line script. could you run the script, you run for facebook, but wit --verbose
flag?
sorry I uploaded the wrong one.
could you input message in fb and check what is logged
here it is
at the logs you posted above, if you connect it to facebook, the logs have to appear there
Here is what exactly I have done many times so far Step1: in fb_credentials.yml file: verify: "minh-bot" secret: I take the app secret here page-access-token: in here Step2 : I run this script: python3 -m rasa_core.run -d models/dialogue -u projects/default/model_20180813-121815 --port 5002 --connector facebook --credentials fb_credentials.yml
and run ./ngrok http 5002 for local testing
Step 3 : Edit user subcription (verify token : minh-bot) Verify and save Step4 : in put message in fb
could you in step2: python3 -m rasa_core.run -d models/dialogue -u projects/default/model_20180813-121815 --port 5002 --connector facebook --credentials fb_credentials.yml --verbose
Step5: check logs
yes, the result of Step2 : Step5:
@MinhMinnie when you press "Verify and Save" does it save or does it show you an error message? Also, is the webhook also set under your Messenger settings like this?
Next, can you post your ngrok logs if that doesn't work
After I press "verify and save", it is properly saved
here is ngrok logs
Also, is the webhook also set under your Messenger settings like this?
yeah, exactly the same like this
@MinhMinnie any luck with this? (sorry I was on vacation)
@akelad I think the problem was because I didn't update the information in Basic/settings page. After I updated, It works till now. you can close the post
@MinhMinnie, what did you do to fix the problem? After updating the settings page did it start working right away? I know this Issue is closed already, but me and my friends have had the same problem