abmaonline/aemfed

"RequestError: Error: connect ECONNREFUSED" on New Project

MarekOCLC opened this issue · 0 comments

  • On Mac zsh, using nvm, node version 16.14.2 (LTS), on a freshly cloned aem-guides-wknd
  • I followed the aemfed README to use it via package.json
  • When I run npm run aemfed this is the output:
➜  aem-guides-wknd git:(main) ✗ npm run aemfed

> aemfed
> aemfed -t "http://admin:admin@localhost:4502" -w "ui.apps/src/main/content/jcr_root/"

---------------------------------------
Working dirs: [
  '/Users/▯▯▯/Documents/GitHub/aem-guides-wknd/ui.apps/src/main/content/jcr_root'
]
Targets: http://admin:admin@localhost:4502
Proxy port: 3000
Interval: 100
Exclude: 
---------------------------------------
Something missing or not working as expected, open an issue on GitHub: https://github.com/abmaonline/aemfed/issues
---------------------------------------
Scanning: /Users/▯▯▯/Documents/GitHub/aem-guides-wknd/ui.apps/src/main/content/jcr_root ...
Awaiting changes ...
---------------------------------------
[localhost:4502] [ERROR] Something went wrong: RequestError: Error: connect ECONNREFUSED 127.0.0.1:4502
    at new RequestError (/Users/▯▯▯/Documents/GitHub/aem-guides-wknd/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (/Users/▯▯▯/Documents/GitHub/aem-guides-wknd/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/Users/▯▯▯/Documents/GitHub/aem-guides-wknd/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/Users/▯▯▯/Documents/GitHub/aem-guides-wknd/node_modules/request/request.js:185:22)
    at Request.emit (node:events:526:28)
    at Request.onRequestError (/Users/▯▯▯/Documents/GitHub/aem-guides-wknd/node_modules/request/request.js:877:8)
    at ClientRequest.emit (node:events:526:28)
    at Socket.socketErrorListener (node:_http_client:442:9)
    at Socket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8) {
  cause: Error: connect ECONNREFUSED 127.0.0.1:4502
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
    errno: -61,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '127.0.0.1',
    port: 4502
  },
  error: Error: connect ECONNREFUSED 127.0.0.1:4502
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
    errno: -61,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '127.0.0.1',
    port: 4502
  },
  options: {
    json: true,
    uri: 'http://admin:admin@localhost:4502/system/console/bundles/org.apache.sling.tracer.json',
    callback: [Function: RP$callback],
    transform: undefined,
    simple: true,
    resolveWithFullResponse: false,
    transform2xxOnly: false
  },
  response: undefined
}
Get state for all instances: 16 ms

Read file tree: 2 ms
Build style tree: 4 ms
Init rejected: RequestError: Error: connect ECONNREFUSED 127.0.0.1:4502

I also tried with node 6.17 LTS as noted in the README but ran into an error that seemed to say I needed to update node.

Any help would be much appreciated! Thank you!