-
Notifications
You must be signed in to change notification settings - Fork 10k
Closed
Labels
product:hyperdriveHyperdrive: https://developers.cloudflare.com/hyperdrive/Hyperdrive: https://developers.cloudflare.com/hyperdrive/
Description
Example URL(s)
Actual Behavior
I am attempting to create a worker that accesses my AWS RDS database.
Following the docs https://developers.cloudflare.com/hyperdrive/examples/connect-to-postgres/postgres-database-providers/aws-rds-aurora/ I am creating a client as follows:
const client = new Client({ connectionString: env.WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_MY_DB, });
Attempting to call the worker either in the browser or with curl results in the following error:
CloudflareSocket is not a constructor
Expected Behavior
The worker should connect to the client and run a simple test query:
await client.connect();
const result = await client.query('SELECT * FROM users;');
Additional information
No response
Metadata
Metadata
Assignees
Labels
product:hyperdriveHyperdrive: https://developers.cloudflare.com/hyperdrive/Hyperdrive: https://developers.cloudflare.com/hyperdrive/