-
Couldn't load subscription status.
- Fork 606
Description
Context: My team has created a recommender system that predicts the flights least likely to be delayed in the US when inputing 5 parameters (arrival time, origin, destination, airline, threshold).
Problem: I run the python script in Jupyter notebook and it runs successfully. I then deploy the function. I have checked my local host end points, and I can see the function has been deployed successfully. I have then created the 5 parameters mentioned above in Tableau, the first four being strings and the threshold being an integer. I have also created the calculated field in Tableau, with the following code:
SCRIPT_STR("return tabpy.query('FlightPredictorV1',_arg1,_arg2,_arg3,_arg4,_arg5)['response']",
[arrival_time], [origin], [destination], [airline], [threshold])
Error: When I try apply this calculated field by dragging it into the Tableau sheet, I get the following error:
An error occurred while communicating with the External Service.
Error Code: 6116DD27
Error processing script
The endpoint you're trying to query did not respond. Please make sure the endpoint exists and the correct set of arguments are provided.
Attached:
- Screenshot of the recommender system and code to deploy it
- Screenshot of endpoints
- Screenshot of the calculated in field in Tableau with parameters created on the righthand side
- Screenshot of error message
- What the recommender looks like in Jupyter Notebook




