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

fix(firestore-send-email): kit/extension parity – kit cannot deploy for databases in northamerica-south1 or europe-north2

Aperta Adatta ai principianti
#3,296 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
76/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-send-email/src/region.ts e confronta la gestione delle regioni con le mappature nam5/eur3 esistenti; verifica in kits/firestore-send-email/src/config.ts come viene usato DATABASE_REGION. Aggiorna il testo del README nella sezione citata affinché corrisponda al comportamento. Il lavoro è completo quando entrambe le regioni non supportate vengono distribuite in una località Cloud Functions supportata e il trigger Firestore rimane nella regione del database.

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

Descrizione

kits parity type: bug

firestore-send-email kit/extension parity. Priority: medium. The kit can't be deployed for databases in northamerica-south1 or europe-north2.

Difference
  • Extension: the function runs in the extension's location (us-central1 by default). Only the Eventarc trigger uses DATABASE_REGION, so both regions in its option list work.
  • Kit: the function itself is placed in DATABASE_REGION. Only the multi-regions are remapped; regional values are used as-is. Cloud Functions (2nd gen) isn't available in northamerica-south1 or europe-north2, so the deploy fails. Both regions are still offered in the kit's DATABASE_REGION list, and there is no workaround: a blank value puts the function in us-central1, but no longer next to the database.
Reproduced
  • The Cloud Functions v2 locations list for the test project (40 entries) includes neither region.
  • A kit instance deployed with DATABASE_REGION=europe-north2 fails: generateUploadUrl had HTTP Error: 403, Location europe-north2 is not found or access is unauthorized.
Code
Resolution

Map these two locations to the nearest region that offers Cloud Functions, as is already done for nam5/eur3. The Firestore trigger still fires in the database's own region. Also correct the README's "used as-is" wording.

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.