Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

206
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!