
Trying to get the User's info via rest api and by the userId from session.
I'm getting ERR_ABORTED 401 (Unauthorized)
From the docs I read I need to send via a GET request those headers: GET /v1/users/{userId} HTTP/1.1 Host: HOSTNAME Content-Type: application/json X-Appwrite-Response-Format: 1.4.0 X-Appwrite-Project: 5df5acd0d48c2 X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
In my project's console I defined the hostname field as my local IP, it should be the same in the HOST
Field ?
What about the X-Appwrite-Key
, from where do I get it ? Is this field optional ?
Thanks
Recommended threads
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
