Skip to content
Back

Send a POST request from a function to another service on localhost

  • 0
  • Self Hosted
  • Functions
alon1874
4 Mar, 2024, 13:57

Hey, On a self-hosted server, I'm trying to call to another service from an appwrite function. Calling in using CURL works fine, but from the function I'm getting Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f5074dac0>: Failed to establish a new connection: [Errno 111] Connection refused What am I missing?

TL;DR
Function in Appwrite is unable to establish a connection to another localhost service successfully although CURL works fine. This error usually indicates a connection problem. Double-check the service's availability and the ports.
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