n1c0
n1c0
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
Ok it does not working. We tried to change the start with HOST:0.0.0.0 npm run start It does not working as well
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
or better "0.0.0.0" as global var HOST set "0.0.0.0" on Railway and "127.0.0.1" on other providers
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
@Yannick try to change :
const server = app.listen(PORT, () =>
console.info(`Server is running in port ${PORT}`)
);
const server = app.listen(PORT, () =>
console.info(`Server is running in port ${PORT}`)
);
to
app.listen(PORT, "0.0.0.0", () => {
console.info(`Server is running in port ${PORT}`)
});
app.listen(PORT, "0.0.0.0", () => {
console.info(`Server is running in port ${PORT}`)
});
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
It's not easy to understand the issue. Maybe it could be fix from Railway I don't know maybe change the /etc/hosts config or in our side to force the ws to listen 0.0.0.0 (not easy to do),
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
What I understood it might there is an issue with ipv4/ip 127.0.0.1 vs 0.0.0.0 / geth node through ethersJs
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
We have this message "Looks like your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead."
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
The fact is the code works on Heroku and on other slot on Railway. So that's quite weird
20 replies
RRailway
Created by Yannick on 11/30/2023 in #✋|help
Connection refused to local node on port 8546.
20 replies