Express app connection refused

My express app is getting the following error

dial tcp 10.214.76.68:8012: connect: connection refused

Here is my render log

Mar 15 01:11:21 PM  ==> Cloning from https://github.com/MDouglas345/peerjs-connectionbroker...
Mar 15 01:11:21 PM  ==> Checking out commit 0adb738dd505b2e29af2f1f52c255c893b782556 in branch main
Mar 15 01:11:24 PM  ==> Downloading cache...
Mar 15 01:11:35 PM  ==> Transferred 38MB in 7s. Extraction took 2s.
Mar 15 01:11:37 PM  ==> Detected Node version 16.14.2
Mar 15 01:11:37 PM  ==> Running build command 'npm install'...
Mar 15 01:11:38 PM  
Mar 15 01:11:38 PM  up to date, audited 94 packages in 579ms
Mar 15 01:11:38 PM  
Mar 15 01:11:38 PM  13 packages are looking for funding
Mar 15 01:11:38 PM    run `npm fund` for details
Mar 15 01:11:38 PM  
Mar 15 01:11:38 PM  found 0 vulnerabilities
Mar 15 01:11:38 PM  ==> Generating container image from build. This may take a few minutes...
Mar 15 01:12:41 PM  ==> Uploading build...
Mar 15 01:13:08 PM  ==> Build uploaded in 22s
Mar 15 01:13:08 PM  ==> Build successful 🎉
Mar 15 01:13:08 PM  ==> Deploying...
Mar 15 01:13:26 PM  ==> Detected Node version 16.14.2
Mar 15 01:13:26 PM  ==> Starting service with 'node index.js'

Here is my server snippet

I have experimented with the PORT env variable to no avail. Currently set to 3000.

The site link → https://roar-connection-broker.onrender.com

Hi Michael,
It looks like you might have a typo in line 7. Try: app.use(cors())

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.