Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IEEE API throws error #175

Open
sdruskat opened this issue Aug 6, 2019 · 5 comments
Open

IEEE API throws error #175

sdruskat opened this issue Aug 6, 2019 · 5 comments

Comments

@sdruskat
Copy link

sdruskat commented Aug 6, 2019

Using 0.4.17 on Ubuntu 18.04 LTS with Node v12.7.0 and NPM 6.10.0 I get the error below running the following query:

getpapers -q 'cs=syracuse thsrsterms=audio' -o Output11 --api 'ieee' -n

Error:

info: Searching using ieee API
info: Running in no-execute mode, so nothing will be downloaded
events.js:180
      throw er; // Unhandled 'error' event
      ^

Error: Attribute without value
Line: 372
Column: 114
Char: >
    at error (/usr/lib/node_modules/getpapers/node_modules/xml2js/node_modules/sax/lib/sax.js:651:10)
    at strictFail (/usr/lib/node_modules/getpapers/node_modules/xml2js/node_modules/sax/lib/sax.js:677:7)
    at SAXParser.write (/usr/lib/node_modules/getpapers/node_modules/xml2js/node_modules/sax/lib/sax.js:1321:13)
    at Parser.exports.Parser.Parser.parseString (/usr/lib/node_modules/getpapers/node_modules/xml2js/lib/parser.js:322:31)
    at Parser.parseString (/usr/lib/node_modules/getpapers/node_modules/xml2js/lib/parser.js:5:59)
    at exports.parseString (/usr/lib/node_modules/getpapers/node_modules/xml2js/lib/parser.js:354:19)
    at Request.convertXML2JSON (/usr/lib/node_modules/getpapers/lib/ieee.js:76:5)
    at Request.emit (events.js:208:15)
    at Request.<anonymous> (/usr/lib/node_modules/getpapers/node_modules/requestretry/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:203:13)
Emitted 'error' event at:
    at Parser.exports.Parser.Parser.parseString (/usr/lib/node_modules/getpapers/node_modules/xml2js/lib/parser.js:326:16)
    at Parser.parseString (/usr/lib/node_modules/getpapers/node_modules/xml2js/lib/parser.js:5:59)
    [... lines matching original stack trace ...]
    at Request.emit (events.js:203:13)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/getpapers/node_modules/requestretry/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:291:20)
    at IncomingMessage.emit (events.js:208:15)
@petermr
Copy link
Member

petermr commented Aug 6, 2019 via email

@sdruskat
Copy link
Author

sdruskat commented Aug 6, 2019

Hi @petermr, thanks for the quick answer. I've not been able to run a single query successfully against the IEEE API.

The web interface gives me 6 results iff I supply my API key. I have also tried supplying it as part of the query, like getpapers --api ieee --query 'cs=syracuse apikey=<api-key>' --outdir out -n, but hit the same error...

@petermr
Copy link
Member

petermr commented Aug 6, 2019 via email

@sdruskat
Copy link
Author

sdruskat commented Aug 6, 2019

Thanks, I'll try to look into fixing this, but I've never worked with JS/Node properly, so may take time.

@petermr
Copy link
Member

petermr commented Aug 6, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants