node-redmine icon indicating copy to clipboard operation
node-redmine copied to clipboard

updateIssue fatal error

Open dimd13 opened this issue 10 years ago • 1 comments

Hi, method updateIssue returns an empty string and JSON.parse cannot be applied to empty strings in request method, this causes an error:

undefined:0


SyntaxError: Unexpected end of input
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/home/user/Projects/feedMiner/node_modules/redmine/lib/redmine.js:89:23)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

Sorry 4 my english

dimd13 avatar Jun 25 '15 08:06 dimd13

I performed a commit to fix it

Sorry 4 my english too :)

guilhermesperb avatar Jul 15 '16 18:07 guilhermesperb