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: ERROR Encountered a non-object value in array #56

Open
2 tasks done
limcheekin opened this issue Mar 8, 2024 · 0 comments
Open
2 tasks done

Bug: ERROR Encountered a non-object value in array #56

limcheekin opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@limcheekin
Copy link

limcheekin commented Mar 8, 2024

Describe the bug

The db.select() and db.delete() throw the error above when the given id is not found.

Steps to reproduce

  1. Add the following code to the development server, index.html:
      const db = new Surreal();
      await db.connect("indxdb://test");
      await db.use({ namespace: "test", database: "test" });
      await db.select("person:1");
  2. Run the development server with command npm run serve.
  3. Access the http://localhost:8000 and you should see the error in developer console of Chrome browser.

Expected behaviour

It should return null or [].

SurrealDB version

1.2.0 and 1.3.0

Contact Details

No response

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
@limcheekin limcheekin added the bug Something isn't working label Mar 8, 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