Back
{"code":"ConnectionRefused","path":"http://localhost/v1/users?queries%5B0%5D=%7B%22method%22%3A%22eq
- 0
- Self Hosted
- Functions
This error is from my functions
TL;DR
Error code "ConnectionRefused" when trying to access localhost. The error stems from code at the line `const userList = await usersClient.list([Query.equal("phone", phone)]);`. The error occurred in the function `loginPhoneHandler`.
Resolution: Ensure that the connection details are correct and that the server is running properly.I am using bun runtime btw
TypeScript
const usersClient = new Users(client);
const databases = new Databases(client);
let { phone, id }: LoginPhoneData = req.body;
log("Checking if the phone number is already registered");
const userList = await usersClient.list([Query.equal("phone", phone)]);
These are the logs:
Executing loginPhoneHandler Checking if the phone number is already registered
It seemts it stuck in this line
TypeScript
const userList = await usersClient.list([Query.equal("phone", phone)]);
How can I fix thix?
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...