Back

C# Server error

  • 0
  • Auth
Scoppy
9 Feb, 2025, 17:49

Hi! Here is a part of the code without any important data. The error is "Server error" without more return.

`` Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") .SetProject("[PROJECT_ID]") .SetKey("[API_KEY]");

TypeScript
    var users = new Users(client);

    try
    {
        User user = await users.Create(
            userId: "unique()", 
            email: "user@example.com",
            password: "password",
            name: "John Doe"
        );

``

TL;DR
Error message "Server error" when trying to create a new user using C# code with Appwrite client. The issue might be related to the endpoint, project ID, or API key. Double-check the provided values.
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