ory / hydra-login-consent-node

This is an ExpressJS reference implementation for the ORY Hydra User Login and Consent interface written in TypeScript and ExpressJS.
https://www.ory.sh/hydra
Apache License 2.0
301 stars 127 forks source link

connect ECONNREFUSED 127.0.0.1:80 #112

Closed micheljung closed 2 years ago

micheljung commented 2 years ago

Preflight checklist

Describe the bug

http://localhost:3000/login 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] (net.js:1146:16)", "config": { "url": "http://localhost/oauth2/auth/requests/login?login_challenge=undefined", "method": "get", "headers": { "Accept": "application/json, text/plain, */*", "User-Agent": "axios/0.19.2" }, "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1 }, "code": "ECONNREFUSED" }

Reproducing the bug

docker run --rm -p 3000:3000  oryd/hydra-login-consent-node:v1.11.7

Open http://localhost:3000/login

Relevant log output

Error: connect ECONNREFUSED 127.0.0.1:80
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
GET /login 500 23.277 ms - 1003
Error: Not Found
    at /usr/src/app/lib/app.js:32:10
    at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13)
    at /usr/src/app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12)
    at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10)
    at /usr/src/app/node_modules/express/lib/router/index.js:635:15
    at next (/usr/src/app/node_modules/express/lib/router/index.js:260:14)
    at Function.handle (/usr/src/app/node_modules/express/lib/router/index.js:174:3)
    at router (/usr/src/app/node_modules/express/lib/router/index.js:47:12)

Relevant configuration

No response

Version

1.11.7

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker

Additional Context

No response

micheljung commented 2 years ago

My bad, I need to set HYDRA_ADMIN_URL=http://hydra:4445