For Workers & Pages, what is the name of the domain?
What is the error number?
404
What is the error message?
404
What is the issue or error you’re encountering
session id missing on http query Cloudflare API | D1 › Database › Query D1 Database
What steps have you taken to resolve the issue?
murdered an AI bot
What are the steps to reproduce the issue?
shows empty hands
Excuse my ignorance, but why would there be a Session ID for an API call?
I assume this is in reference to the new D1 read replication support, via the Sessions API?
D1, Cloudflare’s managed SQL database, announces read replication beta. In this post, we do a technical deep dive of the read replication implementation and how your queries can remain consistent across all regions.
As the blog post states:
Note that the Sessions API is only available through the D1 Worker Binding for now, and support for the HTTP REST API will follow soon.
4 Likes
Because your remote / non-cf-worker app, might want to read it’s own writes for the same consistency reasons a worker would.
1 Like
Great news, thanks, I missed that.
I figured as much, but I’ve never seen a Cloudflare API call that used Session IDs. The closest thing I’ve seen to that behavior are cursors when requesting items in a list, where the first response includes a cursor as a starting point for the next request.
system
Closed
April 27, 2025, 6:36am
7
This topic was automatically closed after 15 days. New replies are no longer allowed.