-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
d1Relating to D1Relating to D1
Description
What versions & operating system are you using?
System:
OS: Linux 6.12 cpe:/o:nixos:nixos:26.05 26.05 (Yarara)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 2.34 GB / 15.32 GB
Container: Yes
Shell: 4.3.3 - /run/current-system/sw/bin/fish
Binaries:
Node: 24.12.0 - /nix/store/cikdc61gfwvdma6y0p9b5d5d448aqcv6-nodejs-24.12.0/bin/node
npm: 11.6.2 - /nix/store/cikdc61gfwvdma6y0p9b5d5d448aqcv6-nodejs-24.12.0/bin/npm
pnpm: 10.26.1 - /nix/store/61lr9izijvg30pcribjdxgjxvh3bysp4-pnpm-10.26.1/bin/pnpm
npmPackages:
wrangler: ^4.59.2 => 4.59.2
Please provide a link to a minimal reproduction
https://github.com/abiriadev/workers-sdk-d1-duration
Describe the Bug
Please see the reproduction repository. It's really simple; it just causes d1 to throw any error.
Expected behavior:
Correctly throw proper exception.
Actual behavior:
Seems it fails while formatting duration information, since the duration field is somehow empty. Maybe it is getting undefined instead of D1Result object.
might be relevant? #11147
Please provide any relevant error logs
[wrangler:error] TypeError: Cannot read properties of undefined (reading 'duration')
at aggregateD1Meta (cloudflare-internal:d1-api:482:41)
at addAggregatedD1MetaToSpan (cloudflare-internal:d1-api:453:28)
at null.<anonymous> (cloudflare-internal:d1-api:215:13)
Metadata
Metadata
Assignees
Labels
d1Relating to D1Relating to D1
Type
Projects
Status
Other