akauppi / GroundLevel-firebase-es

[ANCHORED] Stencil for operational web apps
https://groundlevel-sep22.web.app/
Other
23 stars 3 forks source link

[BUG]: Priming fails with: `socket hang up. Error code: ECONNRESET` #104

Closed akauppi closed 1 year ago

akauppi commented 2 years ago

Seen on:

$ npm test
...
Firebase Emulators for the web app are running.

make: Nothing to be done for 'refresh-prime'.
[+] Running 1/1
 ⠿ Network app_default  Created                                                                                                                                                                                   0.1s
/work/node_modules/firebase-admin/lib/utils/api-request.js:178
            throw new error_1.FirebaseAppError(error_1.AppErrorCodes.NETWORK_ERROR, `Error while making request: ${err.message}. Error code: ${err.code}`);
                  ^

FirebaseAppError: Error while making request: socket hang up. Error code: ECONNRESET
    at /work/node_modules/firebase-admin/lib/utils/api-request.js:178:19
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async wipeUsers (file:///work/src/createUsers/index.js:50:15)
    at async Promise.all (index 1)
    at async main (file:///work/src/main.js:24:3) {
  errorInfo: {
    code: 'app/network-error',
    message: 'Error while making request: socket hang up. Error code: ECONNRESET'
  },
  codePrefix: 'app'
}

Can also happen with npm run dev.

If you encounter this, just retry.

The reason is unknown.

Steps to reproduce

$ cd packages/app
# stop all running Docker containers
$ npm run dev
akauppi commented 1 year ago

Haven't seen on Mac, recently.