You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrangler d1 execute errors with the following message when --file is passed ✘ [ERROR] ReadableStream constructor takes an object as second argument, if any
When running with --local the command seems to freeze
Steps to reproduce
Initialise db (outputs should be pasted in wrangler.toml)
bun wrangler d1 create test-db
Create a test file with a simple sql command
echo"SELECT 1;"> ./test.sql
Run test command against db via --command and cat (works)
bun wrangler d1 execute test-db --local --command="$(cat test.sql)"
Run test command against db via --file (does not work)
bun wrangler d1 execute test-db --local --file=test.sql
Please provide any relevant error logs
⛅️ wrangler 3.107.2
--------------------
✔ ⚠️ This process may take some time, during which your D1 database will be unavailable to serve queries.
Ok to proceed? … yes
🌀 Executing on remote database test-db ([redacted]):
🌀 To execute on your local development database, remove the --remote flag from your wrangler command.
Note: if the execution fails to complete, your DB will return to its original state and you can safely retry.
├ 🌀 Uploading [redacted].sql
│ 🌀 Uploading complete.
│
✘ [ERROR] ReadableStream constructor takes an object as second argument, if any
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
The text was updated successfully, but these errors were encountered:
Hey we don't support running wrangler with bun, as cloudflare workers uses theworkerd runtime. Do you have any issues if you run this with pnpm, npm or yarn?
Which Cloudflare product(s) does this pertain to?
Wrangler, D1
What versions are you using?
3.107.2 [wrangler] 1.1.42 [bun]
What operating system and version are you using?
Mac Sequoia 15.1
Please provide a link to a minimal reproduction
No response
Describe the Bug
Wrangler d1 execute errors with the following message when --file is passed
✘ [ERROR] ReadableStream constructor takes an object as second argument, if any
When running with --local the command seems to freeze
Steps to reproduce
Initialise db (outputs should be pasted in wrangler.toml)
Create a test file with a simple sql command
Run test command against db via --command and cat (works)
bun wrangler d1 execute test-db --local --command="$(cat test.sql)"
Run test command against db via --file (does not work)
Please provide any relevant error logs
The text was updated successfully, but these errors were encountered: