
im getting this error
TypeScript
"message": "No Appwrite project was specified. Please specify your project ID when initializing your Appwrite SDK.",
"code": 401,
"type": "general_access_forbidden",
"version": "1.5.7"
}```
but i have specified this
```import { Client, Account, Databases } from "appwrite";
const client = new Client();
client
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject('667a732a0024xxxxxxxx');
export const account = new Account(client);
export const databases = new Databases(client);```
this is what im trying to do
```await databases.createDocument(
databaseId,
collectionId,
documentId,
documentData
);```
tech: Netxjs
(p.s: my oauth code is working perfectly fine, so my setup is correct)
TL;DR
Developers are encountering a "No Appwrite project was specified" error even after setting the project ID. The issue is with how the Appwrite SDK is being initialized. Ensure to set the project ID immediately when creating a new Client instance. Example:
```javascript
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject('667a732a0024xxxxxxxx');
```
Also, make sure to set the database and collection IDs correctly when calling `createDocument`.Recommended threads
- Registering new flutter app
Hi, ive got an already build flutter app which works in development with appwrite. but with the built version i get an error that the client is not registered. ...
- Relationship opt-in?
Hi! I'm trying to understand opt-in relationship population. I'm listing rows as follows: `(...).listRows({ databaseId: this.databaseId, tableId: this.tableId, ...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
