Repository navigation
google cloud spanner is closing connection #2049
Description
Activity
You should not need to periodically sent Select 1 to spanner. This seems like underlying socket closing.
@callmehiphop @stephenplusplus Any ideas whats going on here.- addedapi: spannerIssues related to the Spanner API.Issues related to the Spanner API.
on Mar 6, 2017 - addedtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on Mar 6, 2017 Possibly related to #2039
@murgatroid99 any ideas about grpc options in this situation?
- addedpriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.
on Mar 7, 2017 Any updates on this?
Actually, we just released gRPC 1.2.0, which should fix this problem
Closing as fixed in GRPC.
@lukesneeringer @murgatroid99 I have tested with the "@google-cloud/spanner" - 0.1.2 package for node and it dosen't work. This is the error
(node:74588) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: {"created":"@1490192388.326156000","description":"Transport closed","file":"../src/core/ext/transport/chttp2/transport/chttp2_transport.c","file_line":1072}What version of GRPC do you have installed?
How can i check this, i have only installed the spanner package for node.
Version 0.1.2
npm list | grep grpcVersion 1.1.2, this is the problem, i think this is installed with the spanner package correct?
The Spanner package uses
^to tag its dependencies;grpcis a dependency of@google-cloud/[email protected], and a new install correctly installs grpc 1.2.0.Basically: Update your dependencies. :-)
- added a commit that references this issue
on Mar 11, 2026
I running my api based on swagger and node.
When my api is running for few minutes without a request and then i send an api request to it, I got this error:
I think google spanner is closing the connection, why and how can prevent it from to that?
The only way that i see in the docs is to send periodically a SELECT 1 request to spanner.
Is this correct?
System Info:
node. 6.10.0
os: macOS latest
package: latest
Thanks for help