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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...