Back

[AppwriteException: Network request failed]

  • 0
  • Self Hosted
  • Auth
  • Apple
Mama Gee
31 May, 2024, 20:12

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); }); }

TL;DR
Developers trying to create a user in Apryse app using React Native are encountering a network request error. Solution: Double-check the configuration settings for the Endpoint, Project ID, and Platform.Ensure the correct values are provided for each parameter.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more