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
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...