Repository navigation
503 unavailable response from datastore after app has idled for a few minutes #1265
Description
Activity
Thanks for reporting. Can you log err.stack as well? Off hand, I'm not sure of anything that might be causing this. @callmehiphop can you try to reproduce?
I'm able to reproduce if I wait about 5 minutes between requests. Also, the error stack doesn't appear to give us very much.
Error at gcloud-node/node_modules/grpc/src/node/src/client.js:411:17@stephenplusplus @callmehiphop - that's the same error stack I get.
I've tried a similar test using the Cloud Storage API where I grab a private file, wait, and then try it again & I do not run into the 503 issue or if I do it's handled.
I was able to reproduce this with the Logging API, which leads me to believe that this is related to grpc. @heidmotron this would also explain why you weren't able to reproduce it via Storage.
@murgatroid99 we're seeing an issue where we make a request and wait about 5 minutes, then all subsequent requests fail. Could this be a result of the client channel going into an idle state? Any insight you could provide here would be greatly appreciated!
@callmehiphop @murgatroid99 - In the stderr of the managed vm logs I found this next to the client.js:411 error.
D0425 01:16:44.599823845 26 chttp2_transport.c:698] got goaway [0]: 73 65 73 73 69 6f 6e 5f 74 69 6d 65 64 5f 6f 75 74 'session_timed_out'Reacted by Leonard Punt@ctiller Does the gRPC core ever generate a message like that?
- 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 Apr 26, 2016 We're experiencing the same issue in two of our applications. The errors started occurring since the 22nd of April. Our apps are using different versions of this library, v0.30.3 and v0.27.0, the error occurs in both. Furthermore, the errors didn't seem to be introduced by an update/deploy on our side. Probably something in the underlying infrastructure has changed?
This is still happening in the BigTable plugin.
- added a commit that references this issue
on Jul 23, 2025 - added a commit that references this issue
on Jan 28, 2026 - added a commit that references this issue
on Feb 5, 2026 - added a commit that references this issue
on Feb 17, 2026 - added a commit that references this issue
on Feb 25, 2026 - added a commit that references this issue
on Mar 27, 2026 - added a commit that references this issue
on May 5, 2026
I've been getting this response in both production and locally (using the production datastore):
The error is thrown from here - https://github.com/grpc/grpc/blob/release-0_13_1/src/node/src/client.js#L411
Steps to reproduce:
Expect: Datastore to return results
Actual: 503 unavailable
The datastore will work and continue to work for another few minutes.
I've deployed the bookstore sample app and it seems to have the same behavior saying "Something broke!".
Here is the code:
I'm using the default app credentials and Flexible VMs. Let me know if there is any other info I could provide.