D1_ERROR: internal error; reference = 3v37q0sukf03r4emb40aq73q , account_id: 75d8d68ecf8f9e8155f1ccc7dad82e00.wrangler directory with each state independant from each other. Thankscf: colo headermeta.served_by_region information. That's the location (region) of your database instance that processed the query.colo: https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfpropertiescolo= line.wrangler d1 info <db_name> , which tells me my db is in Wesern north america, while the only time i ussed it ws from AU. Now I am moving my DB Back to AU by creating new db/exporting data to it.wrangler d1 export --remote <db_name> --output=x_backup.sql does not create DDL & DML in correct order. (Table being referred get created later.).migrations_dir in your wrangler.json file to choose a different path.
CHECK constraint on your column to accomplish a similar result.Invalid property: params => Expected array, received null (7400) seems to be coming from that validation. The params is an optional list argument that should only be provided if you have bind parameters in the SQL query.params === null be treated the same is not provided at all, since null is not a valid value per se for that list argument.When i changed the code to include a string array with params i started getting:Not sure what you mean here. Did you provide an empty slice?
All request parameters are wrapped in a generic Field type, which we use to distinguish zero values from null or omitted fields.
This prevents accidentally sending a zero value if you forget a required parameter, and enables explicitly sending null, false, '', or 0 on optional parameters. Any field not specified is not sent.
null is being sent for params. Did you not provide it at all (as your snippet above implies), or did you provide it explicitly as null?Invalid property: params => Expected array, received null (7400) is from that validation. That old version of the Go SDK I believe sends null when it should not send anything.nulls for now for these cases, but it needs some time to be rolled out.null for now so your original code should continue working once that's out everywhere.D1_ERROR: internal error; reference = 3v37q0sukf03r4emb40aq73q75d8d68ecf8f9e8155f1ccc7dad82e00/root
/app1
wrangler.jsonc -> "d1_databases": [{ "binding": "DB", "database_name": "a-shared-name", "database_id": "1234..." }]
/app2
wrangler.jsonc -> "d1_databases": [{ "binding": "DB", "database_name": "a-shared-name", "database_id": "1234..." }].wranglercf: colocf-placement: local-SYD
cf-ray: 91c7d72ecb3a572d-SYDmeta.served_by_regioncolocolo=wrangler d1 info <db_name>wrangler d1 export --remote <db_name> --output=x_backup.sqlmigrations_dirCHECKInvalid property: params => Expected array, received null (7400)Invalid property: params => Expected array, received null (7400)paramsparamsparams === nullnullnullnullnullnull