Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

124
Visualizações
Pushing a task with firebase-queue not working

I am trying to use the queuing module base on top of Firebase. I use the following code to push tasks

import admin from "firebase-admin";


admin.initializeApp({
  credential: admin.credential.cert(process.env.GOOGLE_APPLICATION_CREDENTIALS),
  databaseURL: 'gs://xxx.appspot.com/'
});


var db = admin.database();
var ref = db.ref("queue");

ref.child('tasks').push({"name": "this is a push from the client"}).then(function(){ process.exit();});

But nothing is happening. The task is not pushed and the pushing task does not exit or throw any error

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This configuration looks wrong:

databaseURL: 'gs://xxx.appspot.com/'

URLs for the Realtime Database start with https:// and end with either firebaseio.com or firebasedatabase.app. So I recommend double checking the configuaration data in the Firebase console and grabbing the value from the correct key.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda