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

Uncaught Exception Error - Database Not Found #2239

Open
alkatrivedi opened this issue Feb 24, 2025 · 0 comments
Open

Uncaught Exception Error - Database Not Found #2239

alkatrivedi opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API.

Comments

@alkatrivedi
Copy link
Contributor

wrt PR - #2214

This is understood that if we are getting reference to cloud spanner database using const database = instance.database(databaseId); the database needs to be exists already

but if we are getting reference to database which doesn't exists, it is throwing an unhandled exception error

Error: 5 NOT_FOUND: Database not found

- Steps to reproduce

https://github.com/googleapis/nodejs-spanner/blob/main/samples/crud.js#L187-#L229

Run the sample queryData and pass the databaseId which doesn't exists

Running sample is triggering Uncaught Exception which needs to be handle properly

Image
@alkatrivedi alkatrivedi self-assigned this Feb 24, 2025
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/nodejs-spanner API. label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API.
Projects
None yet
Development

No branches or pull requests

1 participant