Open sbcgua opened 1 year ago
Hi! Thanks for the report! š
I've tried to reproduce the error but I only could do it if I try to connect to GCP
, as I lack credentials. Most likely something similar might happened.
Could you reproduce it or is there any other stack trace or error message? Sadly it is not rich enough to reproduce it š
Hi, sorry for late response :(
The log entry is delivered so it is not an issue with the credentials.
And I retried this code which I posted - it actually fails and with the stack I posted. Not sure how to extract additional information.
Here is also the package.json just in case (though it is a bit messy with other experiments)
{
"name": "test-google-logs",
"version": "1.0.0",
"description": "",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@google-cloud/logging": "^9.9.0",
"@google-cloud/logging-bunyan": "^4.2.2",
"bunyan": "^1.8.15",
"cloud-pine": "^2.0.0",
"dotenv": "^16.0.3",
"pino": "^7.9.2"
}
}
Hey! No worries at all!
Then, here I'm guessing the Google logging implementation is taking longer to close the other end of the stream, causing the transport to time out.
Let me take a look deeply into it soon based on what you are sharing! Thanks for the information
Describe the bug The (slightly modified) example from the docs results in
Unhandled 'error' event
. Although the logs were successfully sent (!).To Reproduce
Expected behavior No errors, graceful exit
Screenshots
Desktop (please complete the following information):