Skip to content
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

Gracefully handle promise rejection in stackdriver logging #75

Open
sffc opened this issue Feb 20, 2023 · 0 comments
Open

Gracefully handle promise rejection in stackdriver logging #75

sffc opened this issue Feb 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sffc
Copy link
Contributor

sffc commented Feb 20, 2023

From time to time, it seems the stackdriver service is unavailable and we're getting logs such as

unhandledRejection Promise {
  <rejected> GoogleError: Total timeout of API google.logging.v2.LoggingServiceV2 exceeded 60000 milliseconds before any response was received.
...
    at reportError (.../shared/stackdriver/index.js:34:28)
    at writeLog (.../shared/stackdriver/index.js:51:3)
    at process.<anonymous> (.../shared/logger.js:50:2)
...
@sffc sffc added the bug Something isn't working label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant