You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for this great and simple sparql module!
I use it to get information from various endpoints and ran into some errors.
<?xml version="1.0"?>
^
SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at Request.callback (.\node_modules\sparql\lib\sparql.coffee:138:59)
at IncomingMessage. (.\node_modules\request\main.js:214:44)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
I had some problems handeling bad response formats and was not able to catch occuring exceptions. I fixed it by changing sparql.coffee:79 cb? null, try JSON.parse body catch e. i am new to nodejs and never code cs so im not sure if this is even an issue or my fault.
The text was updated successfully, but these errors were encountered:
First of all thanks for this great and simple sparql module!
I use it to get information from various endpoints and ran into some errors.
<?xml version="1.0"?>
^
SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at Request.callback (.\node_modules\sparql\lib\sparql.coffee:138:59)
at IncomingMessage. (.\node_modules\request\main.js:214:44)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
I had some problems handeling bad response formats and was not able to catch occuring exceptions. I fixed it by changing sparql.coffee:79
cb? null, try JSON.parse body catch e
. i am new to nodejs and never code cs so im not sure if this is even an issue or my fault.The text was updated successfully, but these errors were encountered: