riftninja/google-news-api

worked for a week then stopped Error: Unquoted attribute value

Opened this issue · 0 comments

Using the example from main page gives me an error.

googleNewsAPI.getNews(googleNewsAPI.SEARCH, "apple", "en-GB", (err, response) => {
    console.log(response);
});
Line: 0
Column: 253
Char: s
at error (/starter/node_modules/sax/lib/sax.js:651:10)
at strictFail (/starter/node_modules/sax/lib/sax.js:677:7)
at SAXParser.write (/starter/node_modules/sax/lib/sax.js:1367:13)
at Parser.exports.Parser.Parser.parseString (/starter/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/starter/node_modules/xml2js/lib/parser.js:5:59)
at Object.exports.parseString (/starter/node_modules/xml2js/lib/parser.js:369:19)
at /starter/node_modules/google-news-json/lib/index.js:115:11
at IncomingMessage.<anonymous> (/starter/node_modules/google-news-json/lib/index.js:86:4)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)