8000 fix(store): say which setting to fix when SurrealDB refuses the password by adeelahmad · Pull Request #254 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

fix(store): say which setting to fix when SurrealDB refuses the password - #254

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-qyxuhc
Oct 9, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-qyxuhc

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: when SURREAL_PASS no longer matched the database volume, the backend died with only "cannot open SurrealDB at ws://surrealdb:8000: There was a problem with authentication."

After: the same error adds that SURREAL_USER/SURREAL_PASS don't match the user the database was created with, and to set them back to the original values (see .env) and restart.

How: SurrealDB keeps the root user it was first started with, so a later password change in .env doesn't apply. DB.__init__ now adds that hint for server URLs when the error mentions authentication. One unit test covers it.

🤖 Generated with Claude Code

https://claude.ai/code/session_012wcFmyYcWVbxxKpGsR652k


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012wcFmyYcWVbxxKpGsR652k
@adeelahmad adeelahmad self-assigned this Oct 9, 2026
@adeelahmad
adeelahmad merged commit f46cff4 into main Oct 9, 2026
5 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-qyxuhc branch October 9, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0