Try it without calling stringify, and just pass in a plain value first
Try it without calling stringify, and just pass in a plain value first
.json(), I will test without that - success can only be true in the TypeScript typingsnode_modules/@cloudflare/workers-types/index.d.tssuccess can only be true in the D1Result type, see D1UpstreamFailure:D1UpstreamFailure is this file. I'm using "@cloudflare/workers-types": "^4.20230814.0", will update4.20231002.0. @rozenmd Can you link me to this file?D1UpstreamFailure is in the binding rather than the types so the users don't see itsuccess is false for methods which don't return itsuccess is false for first. Does it throw an error, return null, etcsuccess is true on every call that returns it? I've been assuming if there's an upstream error it will throw--local

$ npx wrangler d1 backup create prod-dbwrangler 3.11.0. Is this error expected? Are backups not yet supported?
interface D1UpstreamFailure {
results?: never
error: string
success: false
meta: Record<string, unknown>
}✘ [ERROR] A request to the Cloudflare API (/accounts/some-id/d1/database/some-id/backup) failed.
The request is malformed: Experimental DBs do not support backups yet:
some-id (v3) [code: 7400]
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose