Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Peter Mingione
Peter Mingione
11,872 Points

test ... node example_profile.js ... is not working

The test ... node example_profile.js ... is not working. I get this error ...

AggregateError [EBADF]: 
    at internalConnectMultiple (node:net:1117:18)
    at afterConnectMultiple (node:net:1684:7)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (node:_http_client:500:9)
    at TLSSocket.emit (node:events:520:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'EBADF',
  [errors]: [
    Error: connect EBADF 52.54.79.234:443
        at createConnectionError (node:net:1647:14)
        at afterConnectMultiple (node:net:1677:16) {
      errno: -9,
      code: 'EBADF',
      syscall: 'connect',
      address: '52.54.79.234',
      port: 443
    },
    Error: connect EBADF 34.198.233.37:443
        at createConnectionError (node:net:1647:14)
        at afterConnectMultiple (node:net:1677:16) {
      errno: -9,
      code: 'EBADF',
      syscall: 'connect',
      address: '34.198.233.37',
      port: 443
    }
  ]
}
Steven Parker
Steven Parker
243,200 Points

Sharing your code is more important that showing the errors. We can recreate the errors using it, but also find the cause of the issue.

Here's a video about how to make a snapshot of your workspace and you can then post the link to it here.