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 : Surrealdb Websocket + React native #322

Open
2 tasks done
yassinrais opened this issue Jul 27, 2024 · 1 comment
Open
2 tasks done

Bug : Surrealdb Websocket + React native #322

yassinrais opened this issue Jul 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yassinrais
Copy link

Describe the bug

When attempting to establish an initial connection to SurrealDB using a WebSocket URL, the connection fails silently. No connection is established, and no error is thrown or reported. The application appears unresponsive with regards to the database connection attempt

Steps to reproduce

Establish a connection to SurrealDB using a WebSocket URL

import { Surreal } from 'surrealdb.js';

const db = new Surreal();

try {
  await db.connect('ws://localhost:8000/rpc');
} catch (error) {
  console.error('Connection error:', error);
}

Expected behaviour

  1. Successful Connection: The application should establish a connection to the SurrealDB instance..
  2. Error Handling: If the connection fails, an error should be thrown or returned instead of nothing...

SurrealDB version

1.5.4 for macos on aarch64

JavaScript SDK version

0.0.1-beta.4

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
@yassinrais yassinrais added the bug Something isn't working label Jul 27, 2024
@triracle97
Copy link

This one relates to my issue surrealdb/surrealdb#3987

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

2 participants