Skip to content

Tabpy & Tableau: Successfully deployed function, but still get an error occurred while communicating with the External Service #406

@alitkie

Description

@alitkie

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

Screenshot 2020-04-05 at 13 34 47

Screenshot 2020-04-05 at 13 36 16

Screenshot 2020-04-05 at 13 36 54

Screenshot 2020-04-05 at 13 38 14

Screenshot 2020-04-05 at 13 42 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions