Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud function extension emulator throws error when adding data #2930

Closed
russellwheatley opened this issue Dec 14, 2020 · 1 comment
Closed
Assignees

Comments

@russellwheatley
Copy link
Member

[REQUIRED] Environment info

firebase-tools:
8.17.0

Platform:
macOS Catalina 10.15.4

[REQUIRED] Test case

See steps to reproduce.

[REQUIRED] Steps to reproduce

  1. git clone git@github.com:firebase/extensions.git
  2. run npm i from root of extension's directory.
  3. cd rtdb-limit-child-nodes directory
  4. create test-params.env file. Add environment variables & insert project id as appropriate:
LOCATION=europe-west2
MAX_COUNT=2
NODE_PATH=test
SELECTED_DATABASE_INSTANCE=[INSERT YOUR OWN PROJECT ID]
  1. delete line 129: default: ${DATABASE_INSTANCE} & line 131:validationRegex: ^([0-9a-z_.-]*)$ from the extension.yaml file otherwise you will encounter the issue I raised here.
  2. run CLI command with your project id : firebase ext:dev:emulators:start --test-params=test-params.env --project=[INSERT YOUR OWN PROJECT ID]

[REQUIRED] Expected behavior

I expect the Cloud Function emulator to run when I add data to the RTDB emulator.

[REQUIRED] Actual behavior

Error is thrown:

@firebase/database: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com

@russellwheatley russellwheatley changed the title realtime database extension emulator throws error when adding data cloud function extension emulator throws error when adding data Dec 14, 2020
@joehan
Copy link
Contributor

joehan commented Sep 16, 2022

Closing - this is fixed by the extensions emulator ((https://firebase.google.com/docs/emulator-suite/use_extensions)

@joehan joehan closed this as completed Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants