Closed gaganjotkaur3197 closed 4 years ago
Hi,
I've had some problems reproducing your issue. This happens if the verbose output is turned off, and the request fails. I've issued a small update which improves error messages.
Please run npm update eventregistry
, then modify example as seen below:
var erBase = require("eventregistry");
var er = new erBase.EventRegistry({ apiKey: 'EVENT_REGISTRY_API_KEY', verboseOutput: true });
er.getConceptUri("George Clooney").then((conceptUri) => {
console.log(conceptUri);
var q = new erBase.QueryArticlesIter(er, {conceptUri: conceptUri, sortBy: "date"});
q.execQuery((item) => {
console.info(item);
})
}).catch((err) => {
console.log(err);
});
Check the 'http://eventregistry.org/me?tab=settings' to obtain the correct API key for your account.
Best regards, Anze
Thanks, Anze. it will surely help me.
I am using Event registry library in my nodejs application. I am using the node version v8.16.0. I am trying to run the code samples mentioned in the documentation as
I am getting the below error everytime