scotthovestadt / gigya

Gigya JavaScript REST SDK
MIT License
37 stars 62 forks source link

getaddrinfo ENOTFOUND idx.eu-west-1.gigya.com idx.eu-west-1.gigya.com:443 #31

Closed renzosunico closed 5 years ago

renzosunico commented 5 years ago

Hi,

I'm using this library on my lambda function, however, I'm getting this error.

{
  "errorMessage": "getaddrinfo ENOTFOUND idx.eu-west-1.gigya.com idx.eu-west-1.gigya.com:443",
  "errorType": "Error",
  "stackTrace": [
    "errnoException (dns.js:50:10)",
    "GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)"
  ]
}

I would like to apologize in advance if I'm using it wrong. I tried to debug it myself but it seems to be written in typescript.

const {Gigya} = require('gigya')

const gigya = new Gigya(
    process.env.GIGYA_API_KEY,
    process.env.GIGYA_DATA_CENTER,
    process.env.GIGYA_USER_KEY,
    process.env.GIGYA_SECRET_KEY
);

const job = await gigya.idx.search({query: `SELECT * FROM idx_job_status WHERE id = "${jobId}"`});
renzosunico commented 5 years ago

It's my bad I set the data center AWS style should have been eu1.