Gsql connection timeout from pyTigergraph

How do we figure the root cause for this?

HTTPConnectionPool(host='', port=8123): Max retries exceeded with url: /gsqlserver/gsql/file (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2b00aef280>: Failed to establish a new connection: [Errno 110] Connection timed out'))

The error message you’re encountering indicates a network connectivity issue between your application and the TigerGraph server. The specific error, HTTPConnectionPool... Max retries exceeded with url: /gsqlserver/gsql/file, followed by NewConnectionError and Failed to establish a new connection: [Errno 110] Connection timed out, suggests that the client is unable to establish a connection with the TigerGraph server.

This could be due to several reasons:

  1. Network Issues: Check if the TigerGraph server is reachable from your client machine. There might be network connectivity problems or firewall settings blocking access.
  2. Server Availability: Verify that the TigerGraph server is running and accessible on the specified host and port.
  3. Incorrect URL/Port: Ensure that the URL and port in your request match the TigerGraph server’s configuration.
  4. Resource Limitations: The server might be overloaded or not responding within the expected time frame.

Please make sure the port is open on the server and that no firewall is blocking the request.

1 Like

thank you for your response.

It seemed it was expecting the custom port set for RESTPP to be sent

Although now I am getting this error when I try to run a gsql

HTTPError: 404 Client Error: Not Found for url: http://xxxxxxxxxxxxx/gsqlserver/gsql/file