Error adding endpoint to TabPy Server on Google Cloud VM Instance
See original GitHub issueHi,
We’ve been trying to get a TabPy server running on a Google Cloud VM so that we can deploy models from Datalab. I’ve installed TabPy and the server is running fine - navigating to the ip address in a browser brings up the Tableau logo, and I’m able to connect Tableau to the predictive service and execute python code using the SCRIPT_ functions - however I’m getting an error when using the client to deploy from Datalab.
Using the code:
import tabpy_client
client = tabpy_client.Client('http://{0}:9004/').format(server_ip)
def add(x,y):
import numpy as np
return np.add(x, y).tolist()
client.deploy('add', add, 'Adds two numbers x and y')
Brings up the error:
I may well have overlooked something in getting it set up as it is working fine locally, but can’t work out what’s causing it.
Thanks in advance,
Adam
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Troubleshooting response errors - OpenAPI - Google Cloud
This page describes how to troubleshoot errors that you receive in a response from a request to your API. BAD_GATEWAY. If you receive...
Read more >Connect Tableau To Gcp Compute Instance ... - ADocLib
Step 5: Publish data to Tableau Server on your Google Compute Engine VM. ... Error adding endpoint to TabPy Server on Google Cloud...
Read more >Troubleshooting Tableau Server on the Google Cloud Platform
In the GCP Compute Engine console, make sure that you've configured an endpoint to allow HTTP traffic to the instance. You receive the...
Read more >Connect Tableau to GCP Compute Instance running TabPy
To access your VM from the internet on port 9004, you'd need to: Create a new firewall rule allowing incoming traffic on 9004...
Read more >Tableau Prep Help - BI Consult
Add or embed credentials for cloud connectors when publishing your flow ... Configure the Tableau Python (TabPy) server for Tableau Server.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Currently TabPy only supports deploying to local file paths. So this is not a bug, it is a feature request 😃
@afreeland thanks for the information, that’s useful for us to know.