Skip to content

war for the planet of the apes generates error in Step 4 of demo #20

Description

@ryanmark1867

exercising demo step 4, "war for the planet of the apes" generates the following error:

2020-02-15 10:19:42 WARNING root - COMMENT: end of transmission FM
127.0.0.1 - - [2020-02-15 10:19:42] "POST /webhook HTTP/1.1" 200 3167 5.177655
2020-02-15 10:19:49 WARNING root - IN ACTION SHOW DETAILS TRACKER_VALUE facebook
2020-02-15 10:19:49 WARNING root - raw_movie is the planet of the apes
2020-02-15 10:19:49 WARNING root - not a video the planet of the apes
2020-02-15 10:19:50 WARNING root - trying fuzzy match for the planet of the apes
2020-02-15 10:19:50 WARNING root - poster_file is /qnJ2trS7tcHxmG4KIUMgAbIM9DG.jpg
2020-02-15 10:19:50 WARNING root - target_URL is https://webviewfm.ngrok.io/
2020-02-15 10:19:51 WARNING root - movie_id_list is[]
2020-02-15 10:19:51 ERROR rasa_sdk.endpoint - Exception on /webhook [POST]
Traceback (most recent call last):
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\flask_cors\decorator.py", line 128, in wrapped_function
resp = make_response(f(*args, **kwargs))
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\rasa_sdk\endpoint.py", line 59, in webhook
response = executor.run(action_call)
File "c:\users\ryanm\appdata\local\programs\python\python37\lib\site-packages\rasa_sdk\executor.py", line 254, in run
events = action(dispatcher, tracker, domain)
File "C:\personal\chatbot_july_2019\chatbot_production\actions.py", line 1203, in run
wv_payload = get_wv_payload('original_title',raw_movie)
File "C:\personal\chatbot_july_2019\chatbot_production\actions.py", line 1141, in get_wv_payload
movie_id_value = movie_id_list[0]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions