-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank error message when trying to insert record into cloud datastore from cloud run #553
Comments
👋 thanks for the bug report @mdobson. |
Happy to help! |
Hi @mdobson, I deployed the following code to Google cloud run which inserts data to the cloud Datastore. I couldn't reproduce the error please let me know if I'm missing anything. const express = require('express');
const app = express();
app.get('/', (req, res) => {
async function addTask() {
const { Datastore } = require('@google-cloud/datastore');
const projectId = "[YOUR_PROJECT_ID]";
const datastore = new Datastore({ projectId: projectId });
const taskKey = datastore.key({ namespace: "Apple1", path: ["iPhone2", "2007"] });
const data = {
name: 'iPhone3Gs',
created: "2009"
};
const entity = {
key: taskKey,
data: data
};
datastore.save(entity)
.then((response) => {
res.send(`This is the ${JSON.stringify(response[0])}`);
})
.catch((error) => {
res.send(`error`, error)
});
}
addTask();
});
const port = 8080;
app.listen(port, () => {
console.log(`Server started on ${port}`);
}); |
Hi @vishald123 We see the behavior when there are many inserts performed at once in cloud run. |
This issue keeps coming back and biting us. It’s very sporadic this making it hard to reproduce. Has there been any progress on this? Any other issues in other GCP libs that are similar? |
Hi Google APIs Team, We're still seeing this issue, but with some slight changes. The error will have a similar stack trace, but now send back an error message of Stack trace:
Thanks, -Matt |
We are also seeing this issue using
|
@ChrisWestcottUK Yeah, it's a nasty one. I hope they are looking at it though this thread has gone pretty stale. Any chance you've found a way to reproduce it consistently? We haven't been able to. |
Another issue related to |
@meredithslota Understood! We ended up incorporating exponential backoffs to solve this, but I'll perform the upgrade and report back. |
I'm going to go ahead and close this out, but if you are still seeing issues after the upgrade, please file a new issue and reference this one. Thank you! |
If you are still having issues, please be sure to include as much information as possible:
Environment details
@google-cloud/datastore
version: 4.5.2Steps to reproduce
We are seeing weird intermittent behavior in cloud run using the cloud datastore library. Periodically when trying to insert a record to cloud datastore we'll see a connection error with no message and the following stack trace. We are having a hard time trying to diagnose and remedy this issue aside from a hard crash a retry of the particular process. I couldn't really find other issues that had this specific error in cloud datastore so I posted it here.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: