surrealdb / surrealdb.js

SurrealDB SDK for JavaScript
https://surrealdb.com
Apache License 2.0
287 stars 47 forks source link

Bug: MissingNamespaceDatabase #303

Open ioannist opened 1 month ago

ioannist commented 1 month ago

Describe the bug

The following init examples don't work:

https://surrealdb.com/docs/sdk/javascript/core/initialization

specifically, await db.connect(db_url); returns MissingNamespaceDatabase

One needs to: await db.connect(db_url, { namespace, database }); to get through, which shouldn't be the case

Steps to reproduce

await db.connect(db_url);

Expected behaviour

It should not throw an error

SurrealDB version

1.5.1

SurrealDB.js version

^1.0.0-beta.12

Contact Details

No response

Is there an existing issue for this?

Code of Conduct