Dear all && team,
Hello. It seems that there is an issues with dump() function when use D1 Open Alpha database.
I’ve maked a control experiment. Steps to reproduce are easy:
- Use your already existed D1 database or just create two new empty D1 database, one is Open Alpha database, another is legacy alpha database.
- In the worker script, use the demo codes from https://developers.cloudflare.com/d1/platform/client-api/#await-dbdump
const dump = await db.dump()
return new Response(dump, {
status: 200,
headers: {
'Content-Type': 'application/octet-stream'
}
});
-
With legacy alpha database, it will just work and get the correct ArrayBuffer result.
-
With Open Alpha database, it will throw the error by get the json text result as below:
{"success":false,"error":"Route not found"}
Mmm… Does anyone have any ideas? Thanks