Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Speaking of this was just bouta ask you

Speaking of this was just bouta ask... you ever run into an issue where deployed works perfect as expected but locally it will say the command worked but it did nothing? 🤔 Not sure if this is the proxy somehow like caching a response or if its a miniflare issue...

Hey there kind of cross posting this as

Hey there, kind of cross-posting this as I posted this already in #next-on-pages. Yet I am unsure if this is actually a D1 or Pages / Next issue. We encouter the following error on a deployed app only. No issues locally with Wrangler (3.5.0) and the same app code: ```text "Error: D1_TYPE_ERROR: Type 'object' not supported for value 'Tue Sep 26 2023 12:48:07 GMT+0000 (Coordinated Universal Time)' at D1PreparedStatement.bind (bundledWorker-0.17018918700489616.mjs:898:17) at s.executeQuery (next-on-pages-dist/webpack/9b3bdf9eee839442fe37ed586efaff1d.js:12:44988)...

With wrangler v3 ` persist to path to

With wrangler v3, --persist-to=./path-to-persist-db is not working as expected. I don't see any directory being populated with the sqlite DB...

What is your query A SELECT isn’t

What is your query? A SELECT isn’t guaranteed to be not write rows.

Sure

Sure. Account ID: cfd355bcff7e6af6838743ae944184b0 DB ID: e707d84e-7dd9-4c4b-940a-63ea75a981fb And some extras: Ray ID of a failed request: 7ecd59bfdc728ec8, timestamps are 1690381931502 (request) and 1690381936556 (D1 error)...

Or Pages functions but yeah if you use

Or Pages functions, but yeah, if you use the adapter correctly.

well anyways there’s a drizzle discord

well anyways there’s a drizzle discord

Miniflare 3 D1 testing

Some of the discussion actually reminded me of a question I have had since wrangler3/miniflare3 came out. With those old miniflare packages (https://www.npmjs.com/package/@miniflare/d1) when in a test environment, you could write code that would simulate d1 in the following way ``` import { D1Database, D1DatabaseAPI } from "@miniflare/d1"; import { drizzle } from "drizzle-orm/d1";...

D1 Community Feedback Thread (June 2023)

Hey there! It's feedback time! 😄 We would love to hear from you. What features do you wish D1 had? 🌟 And what's your biggest challenge or frustration when using D1?

Better to post it here we can t formally

Better to post it here: we can't formally/directly support folks via DM, but others may be able to help 🙂

Getting D1 Error `Expression tree is too

Getting D1 Error: Expression tree is too large (maximum depth 20)

NULL bindings coercing to a String

Hi, Would love a simple confirmation. With the new backend, inserting a null value inserts a 'null' (string) value. The same code was working fine with the old backend.

Drizzle / ORM improvements

considering .all doesn't do any remapping, and both .all and .raw call the same /query endpoint - maybe using .all is the fix?

null response to queries

Ok, I'll DM you, I don't know my account ID

I am accessing d1 within a durable

I am accessing d1 within a durable object alarm and getting some unknown error: ``` { "message": [ "error with alarm",...

I don t know of any sqlite aaS services

I don't know of any sqlite-aaS services tbh - fly.io has LiteFS (https://fly.io/docs/litefs/), but similar situation to D1:
LiteFS is currently in beta and is not recommended for production use yet....

Also wrangler is slowly moving away from

Also wrangler is slowly moving away from using React to render things to the terminal (in favour of libraries that support a lack of raw mode), so parsing the Table might break soon

This is now fixed in the API wrangler

This is now fixed in the API & wrangler too