cloudflare / cloudflare/workerd
🐛 BUG: Alternative URL schemas throw Uncaught TypeError: Invalid URL string
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
### Which Cloudflare product(s) does this pertain to?
Workers Runtime
### What versions are you using?
3.38.0 [Wrangler]
### What operating system and version are you using?
Ubuntu
### Please provide a link to a minimal reproduction
https://github.com/bitnom/surrealflare
### Describe the Bug
I'm trying to embed surrealdb in a cloudflare worker. Please see the attached repo. The problem is that I need to:
```
const connectionUrl = new URL('mem://');
console.log(`Connecting to in-memory database with ${connectionUrl.toString()}`);
await db.connect(connectionUrl);
```
producing:
> ✘ [ERROR] service core:user:surrealflare: Uncaught TypeError: Invalid URL string.
### Please provide any relevant error logs
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.