Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix(firestore-bigquery-export): kit/extension parity - DATABASE_REGION offers europe-north2, northamerica-south1 and asia-southeast3, which can't deploy

Aperta Adatta ai principianti
#3,291 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
firebase, typescript
Ambito
backend, cloud

Direzione di ricerca

Inizia da kits/firestore-bigquery-export/src/config.ts del kit, in particolare dalle opzioni di DATABASE_REGION alle righe 158, 172 e 181. Confronta queste opzioni con le regioni Cloud Functions disponibili per il deployment, poi verifica come #3283 gestisce il rifiuto delle opzioni non supportate. Il lavoro è completato quando le tre regioni vengono rimosse e rifiutate se impostate in .env; verifica il comportamento della configurazione interessata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

kits parity type: bug

firestore-bigquery-export kit/extension parity. Three DATABASE_REGION choices can never deploy.

Difference

The kit deploys its functions to the region set in DATABASE_REGION. It offers europe-north2, northamerica-south1 and asia-southeast3, but Cloud Functions has no location in any of them: gcloud functions regions list does not include them, while gcloud run regions list does. The extension offers the first two, but it only uses DATABASE_REGION for the trigger region and deploys the function to LOCATION. This is the same problem as #3268 in storage-resize-images.

Reproduced

With DATABASE_REGION=europe-north2 in .env, firebase deploy --only functions (firebase-tools 15.32.0, with the kit's engines.node changed from >=22 to 22, which this CLI version requires) fails before any function is created:

Error: Request to https://cloudfunctions.googleapis.com/v2/projects/<project>/locations/europe-north2/functions:generateUploadUrl had HTTP Error: 403, Location europe-north2 is not found or access is unauthorized.

northamerica-south1 and asia-southeast3 fail with the same error. With europe-west1, the deploy gets past this step. The project's Firestore database was in us-central1, which does not affect the result, since the deploy fails before any trigger is set up.

Code
Resolution

Remove the three options and reject them when set in .env, as #3283 does for storage-resize-images. Mapping them to a nearby region may also work if a Firestore trigger can reach a function in another region, as the extension's does, but that has not been tested for the kit.

Lingua principale
TypeScript
Stelle
979
Fork
436
Merge medio
2g 13h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/extensions

Tutte le issue di firebase/extensions

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.