I just started using Apryse tonight. I am trying to create a user but I keep getting this error
[AppwriteException: Network request failed]
import { Client, Account, ID } from 'react-native-appwrite';
export const config = { //all required ids here };
// Init your React Native SDK const client = new Client();
client .setEndpoint(config.endpoint) // Your Appwrite Endpoint .setProject(config.projectId) // Your project ID .setPlatform(config.platform) // Your application ID or bundle ID. ;
const account = new Account(client); export const createUser = () => { // Register User account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe') .then(function (response) { console.log(response); }, function (error) { console.log(error); }); }
Recommended threads
- Invalid origin error in authentication
I have setup the package name same as the package name in app.json but it is constantly saying `AppwriteException: Invalid Origin. Register your new client as ...
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".
- Self-host migration from 1.8.X
Is it safe to now migrate from 1.7.4 to 1.8.X on my selfhost?