cloud-logging-data-source-plugin icon indicating copy to clipboard operation
cloud-logging-data-source-plugin copied to clipboard

failed to run test query: list entries: timeout

Open reuvygroovy opened this issue 1 year ago • 3 comments

When testing the datasource I get the following error: failed to run test query: list entries: timeout

I have had similar problem also when connecting via python, and found I could use the the following switch to disable grpc: #logging_client = logging.Client(project=project_id**, _use_grpc=0**)

Is there a way to disable grpc in the plugin?

My query works just fine since when I click on the View in Cloud Logging button I can see my data. This is just the connection method.

reuvygroovy avatar Feb 19 '24 16:02 reuvygroovy

The plugin has never been tested with grpc disabled. Actually, it's probably won't function correctly. When you have the connection issue, is that caused by network or something else?

xiangshen-dk avatar Mar 07 '24 04:03 xiangshen-dk

We found it related to either one of both of the following: 1. using a proxy server 2. The network/security appliance at the edge uses HTTPS Inspection.

We had this issue with Python and only by disabling the proxy and/or HTTPS Inspection did we get around this. Of course if you app is already in GCP there is no issue. Here we were accessing the site remotely.

reuvygroovy avatar Mar 07 '24 05:03 reuvygroovy

The logging client we use for this plugin is on gRPC. Unfortunately, it's not trivial to support an HTTPClient based communication.

xiangshen-dk avatar Mar 23 '24 01:03 xiangshen-dk