do any commands work after you log back in? or always failing?
do any commands work after you log back in? or always failing?
Successfully logged in.
✘ [ERROR] A request to the Cloudflare API (/accounts/xxxxx/d1/database) failed.
Authentication error [code: 10000]
Getting User settings...
👋 You are logged in with an OAuth Token, associated with the email xxxxxxx!
┌──────────────────────────────────────────┬──────────────────────────────────┐
│ Account Name │ Account ID │
├──────────────────────────────────────────┼──────────────────────────────────┤
│ xxxxxxx's Account │ xxxxxxx │
└──────────────────────────────────────────┴──────────────────────────────────┘
🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.
Scope (Access)
- account (read)
- user (read)
- workers (write)
- workers_kv (write)
- workers_routes (write)
- workers_scripts (write)
- workers_tail (read)
- d1 (write)
- pages (write)
- zone (read)
- ssl_certs (write)
- constellation (write)
- ai (write)
- queues (write)
- offline_accessaccount_id in your Wrangler.toml?wrangler d1 export hasn't been removedexport?
wrangler d1 pull command, that exports the DB into the correct place in the .wrangler directory so you can use it locally? You can do that manually rn, but it isn't the most ergonomic thing to doSuccessfully logged in.
✘ [ERROR] A request to the Cloudflare API (/accounts/xxxxx/d1/database) failed.
Authentication error [code: 10000]
Getting User settings...
👋 You are logged in with an OAuth Token, associated with the email xxxxxxx!
┌──────────────────────────────────────────┬──────────────────────────────────┐
│ Account Name │ Account ID │
├──────────────────────────────────────────┼──────────────────────────────────┤
│ xxxxxxx's Account │ xxxxxxx │
└──────────────────────────────────────────┴──────────────────────────────────┘
🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.
Scope (Access)
- account (read)
- user (read)
- workers (write)
- workers_kv (write)
- workers_routes (write)
- workers_scripts (write)
- workers_tail (read)
- d1 (write)
- pages (write)
- zone (read)
- ssl_certs (write)
- constellation (write)
- ai (write)
- queues (write)
- offline_accessaccount_idwrangler d1 exportexportwrangler d1 pullexports.wranglerconst memory = new BufferMemory({
returnMessages: true,
chatHistory: new CloudflareD1MessageHistory({
tableName: 'stored_message',
sessionId: 'example2',
database: env.DB,
}),
});
await memory.saveContext({ input: 'My name is TOMER' }, { output: 'Ok got it' });