Skip to content
Back

Client Error

  • 0
  • Tools
  • Auth
  • Apple
Ojemine159363
11 Jul, 2025, 18:08

Hi Appwrite Community. I've got the Problem, that when I want to define my client, it won't work. Can somebody help me?

(Project ID has been removed due to privacy Reasons) 😉

Useful Info: Xcode 26.0 Beta 3 MacBook Air M3 Midnight M3 16GB RAM

TL;DR
Developers are advised to initialize the client object using the "new" keyword and then chain the methods to set the endpoint and project. Ensure to use proper syntax for the initialization. Solution: ```javascript let client = new Client().setEndpoint('your_endpoint').setProject('your_project'); ```
Kenny
11 Jul, 2025, 18:14

if you do

let client = new Client().setEndpoint().setProject();

Does it work?

Kenny
11 Jul, 2025, 18:14

These are classes, so you need to new them up

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