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

Bug: Local file paths are being url-encoded #43

Open
2 tasks done
Luxbit opened this issue Aug 3, 2024 · 0 comments
Open
2 tasks done

Bug: Local file paths are being url-encoded #43

Luxbit opened this issue Aug 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Luxbit
Copy link

Luxbit commented Aug 3, 2024

Describe the bug

When using surrealdb.js with surrealdb.node in persistent storage mode (SurrealKV), the url is actually a local path an should thus not be url-encoded

Steps to reproduce

import { Surreal } from 'surrealdb.js';
import { surrealdbNodeEngines } from 'surrealdb.node';

const db = new Surreal({
    engines: surrealdbNodeEngines(),
});


await db.connect("surrealkv:///Users/JohnDoe/Library/Application Support/myApp/database.surrealkv");

This will write the database to /Users/JohnDoe/Library/Application%20Support/myApp

Expected behaviour

Local paths should not be url-encoded and the database should be writing to /Users/JohnDoe/Library/Application Support/myApp

Node SDK version

surrealdb.node 1.0.0-beta.1

JavaScript SDK version

1.0.0-beta.12

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Luxbit Luxbit added the bug Something isn't working label Aug 3, 2024
@kearfy kearfy transferred this issue from surrealdb/surrealdb.js Aug 3, 2024
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