So i’m finding myself spending time on fixing replit’s annoying issues instead of actually developing something,
After 2 Hours Of Trying to fix Replit Could not reach repel error by trying to find how to add a port to node listen function (it Was Working correctly with no changes made to the index file), It Got Fixed After I Deleted The Log Files Now My Api Returns a Handshake Exception Connection Terminated When i Call It From Outside Of Replit, The Webview inside the Repel is Working Any Connection From Outside is Refused https://laamardistributionserverproduction.alialwasouf.repl.co/ link to api should return not autherized
let listener = app.listen();
console.log(`Listening to port number ${listener.address().port}`);
this is the listner i’m currently using
Edit 1
Public Test Repel Also Stopped Working and the webview stopped working so now not even internal requests work
i was specifing the port when the problem started and after digging alot i found someone posted this solution, that replit assigns the port, plus process.env.PORT returns undefined
but i will try your approach, thanks
Create a new NodeJS Repl, click examples in index.js and select the Express example. In pre-existing Repls it seems to cause that handshake exception and connection refused error, in new Repls the server just doesn’t seem to respond.