I am using node-appwrite sdk for database operations when i run it locally everything works but after deploying it on appwrite sites nextjs app the database operation does not works this is my setup
export async function createAdminClient() { const client = new Client() .setEndpoint(process.env.NEXT_APPWRITE_API_ENDPOINT) .setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY);
const { tableDB } = await createAdminClient();
const savedOrder = await tableDB.createRow({ databaseId: config.databaseId!, tableId: config.tableId!, rowId: ID.unique(), data: order, });
I am using node 22 same is configured on appwrite sites as well "node-appwrite": "^19.0.0",
ENV of local and prod is exactly same on appwrite sites still facing issue , any help or suggestion would be helpful
headers":{"x-sdk-name":"Node.js","x-sdk-platform":"server","x-sdk-language":"nodejs","x-sdk-version":"19.1.0","user-agent":"AppwriteNodeJSSDK/19.1.0 (linux; x64) Node.js/22","X-Appwrite-Response-Format":"1.8.0",
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...