I am facing a problem in integrating my app with twilio. My environment is 3 docker containers for rasa-NLU, Rasa-CORE and rasa-core-sdk and a 4th one for ngrok. They are all on the same network.
When I type in a text in the phone I get in my ngrok server:
POST /webhooks/twilio/webhook 200 OK
and my rasa_core
172.29.0.5 - - [2018-11-24 22:36:00] “POST /webhooks/twilio/webhook HTTP/1.1” 200 124 0.046605
But my custom action in rasa_core_sdk is not activated.
When I post from the command line then everything works as expected
rasa_nlu_1 | 2018-11-24 22:53:19+0000 [-] “172.29.0.2” - - [24/Nov/2018:22:53:18 +0000] “GET /parse?model=&project=current&q=in+Moscow HTTP/1.1” 200 609 “-” “python-requests/2.20.0”
action_server_1 | DEBUG:rasa_core_sdk.executor:Received request to run ‘action_weather’
action_server_1 | DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): api.apixu.com:80
action_server_1 | DEBUG:urllib3.connectionpool:http://api.apixu.com:80 “GET /v1/current.json?key=xxxxxx&q=moscow HTTP/1.1” 200 395
action_server_1 | DEBUG:rasa_core_sdk.executor:Successfully ran ‘action_weather’
In Twilio debugger I see a warning Warning - 12200. The other details in Twilio are: Message TextShow Raw
Msg | “Content is not allowed in prolog.” |
---|---|
line | “1” |
sourceComponent | “14100” |
parserMessage | “Content is not allowed in prolog.” |
ErrorCode | “12200” |
EmailNotification | “false” |
cols | “1” |
LogLevel | “WARN” |
Response
Headers
X-Cache MISS from Twilio-Cache X-Cache-Lookup MISS from Twilio-Cache:3128 Content-Length 9 Date Sat, 24 Nov 2018 22:36:00 GMT Content-Type text/html; charset=utf-8
BodyShow Raw
In London
What could be the problem? Thanks