Back
{"code":"ConnectionRefused","path":"http://localhost/v1/users?queries%5B0%5D=%7B%22method%22%3A%22eq
- 0
- Self Hosted
- Functions
Mosh Ontong
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. Mosh Ontong
I am using bun runtime btw
Mosh Ontong
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)]);
Mosh Ontong
These are the logs:
Executing loginPhoneHandler Checking if the phone number is already registered
Mosh Ontong
It seemts it stuck in this line
TypeScript
const userList = await usersClient.list([Query.equal("phone", phone)]);
Mosh Ontong
How can I fix thix?
Recommended threads
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...