Back

Password recovery error

  • 1
  • Self Hosted
  • Accounts
  • Web
Ivan
13 Jan, 2024, 17:07

I made a simple express server in Node.Js to reset a password from the link in the email, I first tried hosting the server on my machine but constantly got this error: Uncaught AppwriteException Error: connect ECONNREFUSED 127.0.0.1:80

Then i trued deploying it on render to see if that makes a difference, I now get a different error (second image).

I put the api key in the server as well as correct domain and project id of my self hosted server. I also use cors with express.js on the node.js server. I registered the app in the console with the domain of the server as well as with * .

3rd image is my endpoint with the appwrite function to recover the password. I am using node-appwrite 11.1.0 on node v16.11.0

TL;DR
Title: Password Recovery Error - Incorrect Endpoint Developers are experiencing an error when trying to recover passwords. The error initially occurred when hosting the server on their machine, showing the message: `Uncaught AppwriteException Error: connect ECONNREFUSED 127.0.0.1:80`. They then tried deploying it on Render, resulting in a different error. Possible Solution: - Check the endpoint value and ensure it is correct. - Verify that the DNS and networking are functioning properly. - Make sure the API key, domain, and project ID are correctly set in the server. - Use CORS with Express.js on the Node
Drake
13 Jan, 2024, 17:37

This all seems to point to an incorrect endpoint

Drake
13 Jan, 2024, 17:37

Where is your Appwrite server hosted?

Drake
13 Jan, 2024, 17:40

Maybe you can log the endpoint to make sure the value is right. Then, you'd have to make sure the DNS and networking is working

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