question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firestore-bigquery-export Collection path regex error

See original GitHub issue

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: _ firestore-bigquery-export
  • Extension version: _ Version 0.1.5
  • Configuration values (redact info where appropriate):
    • Collection path: foo/{slug}/collection/document

[REQUIRED] Step 3: Describe the problem

I’m trying to setup this extension to sync a sub-collection with the collection path noted above. During installation I get the following error.

Error occurred while deploying resources: RESOURCE_ERROR: /deployments/firebase-ext-firestore-bigquery-export-discovery/resources/fsexportbigquery Deployment Field Violation Error: gcp-types/cloudfunctions-v1:projects.locations.functions: INVALID_ARGUMENT: Field: event_trigger (Expected value foo/{slug}/collection/document/{documentId} to match regular expression [^/]+/[^/]+(/[^/]+/[^/]+)*)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
deplorablewordcommented, Jul 1, 2020

@russellwheatley Gotcha! A possible improvement would be to make the regex error mention the word document, I think that might make it easier for everyone to debug 😀

0reactions
russellwheatleycommented, Jul 1, 2020

@deplorableword You’re correct, thank you for bringing this to my attention! It isn’t possible to do wildcards via a Firestore query. But this isn’t a typical Firestore query, it is a cloud function that listens to documents as described here.

The reason why it failed initially is because you don’t have to specify the document part of the path, it is interpolated into a string with documentId on the path already. See here. I’ll close this PR.

Apologies for the confusion!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading data from Firestore exports | BigQuery - Google Cloud
Your export command must specify a collection-ids filter. Data exported without specifying a collection ID filter cannot be loaded into BigQuery.
Read more >
Configure Hosting behavior | Firebase Hosting - Google
Firebase Hosting compares the source or regex value against all URL paths at the start of every request (before the browser determines whether...
Read more >
Chapter 4. Loading Data into BigQuery - O'Reilly
The problem is that, based on most of the data in the CSV file, BigQuery's schema autodetection expects that the 26th column (whose...
Read more >
Cannot import existing collection from firebase to BigQuery
I'm using the firestore-bigquery-export extension for Firebase. ... after successful import: Error: ENOENT: no such file or directory, ...
Read more >
Google Cloud Firestore - Make
Input the collection path. Select whether to specify the project, database, and collection manually (By Mapping) or using a drop-down menu (By Dropdown)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found