
Any idea why this is happening?

I did what's in this : https://appwrite.io/docs/client/account?sdk=rest-default

userId, email and password sent, I get 401

You're using REST to make the API request?

yes

actually found the other documentation from the 1.3 instead of cloud

but I'm not sure what the hostname is

Have you added the x-appwrite-project header to the request?
Why don't you use the Appwrite web
client?

i am using that, but I cannot get the schemas in some cases and on the sdk doesn't work well for the expo

Ohh, Got you. This is in ReactNative project

yhh

but got it

thanks 😄

So, it works now?

yup

<a:agooglethumbsup:635256484682530825>

Thanks!

[Solved] Cannot access REST API "Request failed with status code 401"
Recommended threads
- URL attribute in "processing" state
Good day everyone! I just started learning React/Vite. In my current database right now I have these 4 attributes, and the URL attributes seems to still be in ...
- Google sign in wont allow you to choose ...
Hi, this is still unsolved, Appwrite's SDK won't let you specify prompt=select_account param, so a user cannot signin with a desired account, in chrome is just ...
- Console ErrorAppwriteException: User (ro...
AppwriteException: User (role: guests) missing scope (account) at Client.eval (webpack-internal:///(app-pages-browser)/./node_modules/appwrite/dist/esm/sdk....
