Skip to content

IEEE API throws error #175

Open
Open

Description

@sdruskat

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)

Activity

  1. petermr commented on Aug 6, 2019

    @petermr
    Member
  2. sdruskat commented on Aug 6, 2019

    @sdruskat
    Author

    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...

  3. petermr commented on Aug 6, 2019

    @petermr
    Member
  4. sdruskat commented on Aug 6, 2019

    @sdruskat
    Author

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

  5. petermr commented on Aug 6, 2019

    @petermr
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions