The following code leads to this error,
const account = new Account(client);
const user = await account.get();
It happens on a local deployed function (deployed to my local docker instance). The function has been invoked from the client SDK, but this code got problem.
The APPWRITE_FUNCTION_API_ENDPOINT has an value of http://localhost/v1, is it correct?
The client is being initialized like this:
const client = new Client()
.setEndpoint(Bun.env["APPWRITE_FUNCTION_API_ENDPOINT"])
.setProject(Bun.env["APPWRITE_FUNCTION_PROJECT_ID"])
.setKey(req.headers["x-appwrite-key"]);
// Get JWT token from headers
const jwt = req.headers["x-appwrite-user-jwt"];
if (jwt) {
client.setJWT(jwt);
}
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)