I’m getting this error in all scenarios, why?
It might be because you’re using an IP address instead of a named domain (item 4 below) from Perplexity:
Common Causes
There are several reasons why you might encounter an ECONNREFUSED error:
- Firewall Blocking: A firewall may be preventing the connection 1.
- ISP Restrictions: Your Internet Service Provider might be blocking the connection 1.
- Incorrect URL: There could be a typo in the URL you’re trying to access 1.
- Private Endpoint: The endpoint you’re trying to reach may be private or restricted 1.
- Server Issues: The target server might be down, not running, or not configured to accept connections on the specified port 2.
Troubleshooting
To resolve an ECONNREFUSED error, you can try the following steps:
- Check the URL: Ensure there are no typos in the address you’re trying to connect to 1.
- Verify Server Status: Make sure the server you’re attempting to reach is actually running and accessible 2.
- Check Firewall Settings: Review your firewall configuration to ensure it’s not blocking the connection 1.
- Try a Different Device or Network: If possible, attempt the connection from another device or network to isolate the issue 4.
- Port Configuration: Verify that the server is configured to accept connections on the port you’re using 5.
L
Did it work previously? If yes,
This could be intermittent server issues on the external service.
Handle errors so scenarios don’t stop.
You might want to add some error handling to your modules to handle exceptions, so the failing module(s) can automatically be retried or ignored. By handling any errors by adding a “Error handler” to the module, the scenario won’t throw an error and get turned off.
Error directives can only be added to an error handler route.
1. Right click and select “Add error handler”
2. Error handlers will appear
For more information on error handling, see:
- Introduction to errors and warnings in Make
- Overview of error handling in Make
- Error handlers
- Overview of error handling in Make
- Watch these videos by Make - Learn all about error handling (YouTube playlist)
- Webhook Error Handling
- Types of Errors (including RateLimitError HTTP 429: too many requests)
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Solved, thanks very much!
Solved, thanks very much!!