You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SurrealDB Connect() reports connected when username or password is missing, with no log #4313
Every other method, including HealthCheck (surrealdb.go:727), only treats the client as disconnected when c.db == nil, so the app starts, health says UP, and queries run against an unauthenticated session. The "Successfully connected" log is skipped, but no error is logged either.
The sign-in failure (:200-203) and Use failure (:122-125) paths log, but they have the same problem of leaving c.db set.
To Reproduce
Configure SurrealDB with Username set and Password empty.
Start the app.
No error in the logs, and /.well-known/health reports surrealdb as UP.
Expected behavior
An incomplete credentials config should be logged as an error, and any failure after newDB in Connect() should leave the client in the not-connected state (c.db = nil, ideally closing the half-open connection) so health checks and queries return errNotConnected.
Activity