<@U04UQ68083H> what is wrong so that the hydra nod...
# ory-copilot
l
@chilly-king-10285 what is wrong so that the hydra node ui gives { "message": "connect ECONNREFUSED 127.0.0.1:80", "name": "Error", "stack": "Error: connect ECONNREFUSED 127.0.0.1:80\n at TCPConnectWrap.afterConnect [as oncomplete] (nodenet1602:16)", "config": { "url": "http://proxy.whatever.com/oauth/admin/oauth2/auth/requests/login?login_challenge=undefined", "method": "get", "headers": { "Accept": "application/json, text/plain, */*", "User-Agent": "axios/0.21.4" }, "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false } }, "code": "ECONNREFUSED" }
c
A message from kapa.ai
The error message you're seeing,
ECONNREFUSED
, typically means that a connection attempt was refused because the server did not respond. This could be due to several reasons such as the server not running, the server not listening on the correct port, or a network issue. In your case, it seems like the connection to
127.0.0.1:80
is being refused. This could mean that there is no server running on port 80 of your localhost. Here are a few things you can check: 1. Ensure that the Ory Hydra service is running. You can check the logs for any issues. Ory Hydra has extensive logging and you will likely find the issue in the logs. [source](https://www.ory.sh/docs/hydra/faq) 2. Make sure you're using the correct URL. The error message indicates a connection attempt to
<http://proxy.whatever.com/oauth/admin/oauth2/auth/requests/login?login_challenge=undefined>
. Ensure that this URL is correct and that the server is running and listening on the correct port. [source](https://www.ory.sh/docs/hydra/faq) 3. Check if you're mixing up
127.0.0.1
and
localhost
. Use either IPs or hostnames throughout your flow because cookies from an IP aren't available to the hostname and vice-versa. [source](https://www.ory.sh/docs/self-hosted/hydra/debug/csrf#mixing-up-127001-and-localhost) If you're still having issues, you might want to try running a sample application to ensure your setup is correct. You can find instructions on how to do this [here](https://www.ory.sh/docs/hydra/guides/custom-ui-oauth2#run-the-sample-application).