Hey experts out there. Need your support with some strange behaviour.
I'm experimenting AppWrite with SSR NextJs app. on my laptop, everything runs as expected, and I could build some amazing stuff with it.
When tyring to deploy to AppWrite Sites, problems started.... while authenticating a user, cookies start to be a nightmare. It took me some days to go through the problem and identify that recomendation is to have a domain managed in Appwrite due third-party cookies. I embraced the idea, create a domain on GoDaddy and:
- delegated DNS to Appwrite configuring NS on GoDaddy
- create a custom domain "appwrite.<domain>" at project level and set CNAME appwrite to fra.cloud.appwrite.io
- create a custom domain "dev.<domain>" at sites level and set CNAME dev to appwrite.network
On application, I'm using node-appwrite (server) to perform authentication but I'm getting HTTP 500 using the following code snippet:
const sdk = require("node-appwrite"); const client = new sdk.Client(); client .setEndpoint("https://appwrite.<domain>/v1") .setProject("<PROJECT_ID>") .setKey("<YOUR_API_KEY>");
In logs, I can see and error message "TypeError: fetch failed"
Does anybody face this problem? any clue on what I'm doing wrong?
thanks in advance for your help
Recommended threads
- Server Down
Appwrite services are down. When will they start working again?
- Appwrite Sites triggers builds for all p...
I connected my Appwrite Sites to my Git app on my self hosted Appwrite server, but even though I only connected it to main branch, it creates a build every sing...
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...