Closed Startouf closed 8 years ago
It looks like you're just loosing the scope when you desync the classify
function. Try changing
const deasyncedVisualRecognition = deasync(VisualRecognition.classify);
to
const deasyncedVisualRecognition = deasync(VisualRecognition.classify.bind(VisualRecognition));
[speech-to-text] websockets...
I am calling Watson library with deasync. Contents of my file
lib/watson_image_recognition
Should get results of classify function
I get an error
After looking at your code, it would seem those lines from requestwrapper are causing the crash
It would seem that the line
this._options = extend(serviceDefaults, omit(options, ['version_date']));
does not do its job as intended inv3.js
?If I replace
parameters.defaultOptions.url
by 'https://gateway-a.watsonplatform.net/visual-recognition/api` it works againnpm -v watson-developer-cloud
>> 3.9.5