Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

203
Vistas
Unable to use Datastore emulator with Nodejs application

I am trying to use datastore emulator with my nodejs application

Initially I have followed the instructions given in here

Then in my node application :-

var config = {
    projectId : "scio1-ts-datastore"
}

const datastore = require("@google-cloud/datastore")
const db = new datastore.Datastore(config)

const setdata = async () => {
    await db.save(({
        key : db.key('orders') , 
        data : {
            orderId : 1 , 
            orderType : "Hazardous"
        }
    }))
}

const getdata = async () => {
    const query = db.createQuery('orders')
    const [orders] = await db.runQuery(query)
    console.log(orders)

}

setdata()
getdata()

After this I had to run gcloud auth application-default login which I think is not needed to run as I am using datastore Emulator .

But even after this I am unable to run the app

Following error pops up :- enter image description here

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda