What are you doing that results in this?
i trying to call the account.get() function
How did you initialize the client?
yes, when i used the https://cloud.appwrite.io/v1 endpoint it works perfectly but when i used http://appwrite.shinobi.com:3000/ it gets that error
Right...because you need the v1. What happens when you have the v1?
the same thing I guess it happening because the custom domain isn't verified
appwrite is still providing this endpoint
The custom domain won't verify if your domain isn't publicly accessible. It doesn't matter, though.
That will show whatever you're accessing appwrite on
ok
hey again, I managed to get a custom domain and changed the API endpoint so most of the errors went away but I'm still running into this error evertime I'm run account.get()
Wait I think its because I'm trying to access the appwrite API through localhost
right. it's probably a 3rd party cookie problem. either enable 3rd party cookies in your browser settings or set up a fake domain by editing your hosts file
after 2 days i finally got it to work🥳
thanks a lot for your advice and patience @Steven @kathelia.dokgu
No problem! What did you do?
after I set the custom domain I ran into two errors:
- Running the client SDK on the SSR pages
- I forgot to update the Google API console with the new Appwrite endpoints
After I did that it was just copying code from the almostSSR repo(which most of it I don't understand but it worked lol)
I'm going to write an article about this process in a few days
In the latest next 13 update it now supports HTTPS in development which should be helpful in testing auth locally
update: it doesn't work if you change the hostname. The browser won't accept it for some reason
Recommended threads
- Does a user need to be registered in App...
If I want to send an email (for example, to xyz@gmail.com) from an Appwrite Cloud Function, does that email address need to be registered as a user in Appwrite?...
- endpoint variable
Appwrite Sites passes e.g. APPWRITE_SITE_API_ENDPOINT to the site, but i need this variable in Next.js in my Client-Side-Page. How can i pass it? Next.js only p...
- support counts
I want just want number of rows i have matching few conditions, if databse.count was there then will had saved few resources, instead using databse.listrows