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
- Email templates partially broken in non-...
Good afternoon! Non-english locales are missing some variables introduced in recent releases. That makes the sent emails look bad. The issue has been raised a...
- Fail to access the hosted site
Hi there I am facing an issue with the sites. My site is properly hosted on Appwrite but the issue is that when accessing the site from this URL https://instant...
- Error 503 Response object too large
I have a video embedded in an iframe. I've tried hosting the file with my site source, using appwrite storage and even via youtube. It works fine locally, works...