For Workers & Pages, what is the name of the domain?
What is the error number?
None
What is the error message?
“17:10:23 [ERROR] SessionStorageInitError: Error when initializing session storage with driver cloudflare-kv-binding
. The module did not export a driver.
\n at #ensureStorage (chunks/index_Bo3P_cil.mjs:2354:13)\n at async #ensureData (chunks/index_Bo3P_cil.mjs:2233:21)\n at async AstroSession.get (chunks/index_Bo3P_cil.mjs:2061:13)\n at async Module.GET (pages/api/auth/connect.json.astro.mjs:7:23)\n at async renderEndpoint (chunks/astro/server_y8Fz0Oo_.mjs:659:18)\n at async lastNext (chunks/index_Bo3P_cil.mjs:2538:23)”
What is the issue or error you’re encountering
When using Astro, the Cloudflare workers have an integration with it. I have created the KV session, I’ve set it properly in both the astro.config.ts and the wrangler.toml, and yet when it deploys it gives me the above error
What steps have you taken to resolve the issue?
I’ve disabled it. All I am doing is calling session?.get
in an Astro SSR API Endpoint, and it’s crashing hard
What are the steps to reproduce the issue?
- Create SSR astro site
- Add Session Storage, with wrangler.toml
- Build and try it out