Application failed to respond
zisra
FREEOP

a year ago

My code, using fastify:

import Fastify from 'fastify';
// ...
const port = parseInt(process.env.PORT || '3000', 10);

console.log('Listening on port', port);

app.listen({ port: port }, (err) => {
    if (err) throw err;
});

Link: https://substack-production.up.railway.app/
The port should be correct, because it logs the port 8080 and shows 8080 in the deploy settings (see image). No errors in the log at all. Github:
https://github.com/zisra/substack

Solved

8 Replies

zisra
FREEOP

a year ago

7b8a0dc9-8c83-4e70-9e7a-e3fb75b09c95


brody
EMPLOYEE

a year ago

what is the target port set to?


zisra
FREEOP

a year ago

This is 8080, no?

1337242701808144400


brody
EMPLOYEE

a year ago

are you listening on 0.0.0.0?


zisra
FREEOP

a year ago

No I'll try that


zisra
FREEOP

a year ago

Fixes it, thanks


brody
EMPLOYEE

a year ago

no problem!


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...