Skip to content

Upgrade to node 18 fails for authentication emulator #5367

@LanderBeeuwsaert

Description

@LanderBeeuwsaert

[REQUIRED] Environment info

firebase-tools:
11.16.1

Windows 10

Platform:

[REQUIRED] Test case

Upgrading node from v16.14.2 to the latest 18.12.1 seems to give an issue with programmatically getting to the authentication emulator. We get:
image
FirebaseAppError: Error while making request: connect ECONNREFUSED ::1:9095. Error code: ECONNREFUSED
at C:\lander\devprojects\acro-companion\e2e-testing\node_modules\firebase-admin\lib\utils\api-request.js:178:19
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Populator.addUser (file:///C:/lander/devprojects/acro-companion/e2e-testing/utils/populator.ts:1:2302)
at BootPopulator.doPopulate (file:///C:/lander/devprojects/acro-companion/e2e-testing/utils/boot-populator.ts:1:539)
at asyncMain (file:///C:/lander/devprojects/acro-companion/e2e-testing/utils/boot-populator.ts:1:880) {
errorInfo: {
code: 'app/network-error',
message: 'Error while making request: connect ECONNREFUSED ::1:9095. Error code: ECONNREFUSED'
},
codePrefix: 'app'
}

This is when we use a firebase-admin node instance to create test users through the authentication emulator running on port 9095
re-installing v16.14.2 solves the issue

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions