Closed LuisPeregrinaPSL closed 3 years ago
Thanks for the issue, I will look into this today
Turn's out it's result's result (result['result'] or result.result). Maybe something changed in the Promise and the doc has not been updated.
Yep, just realized the same. The documentation is out of date. I will fix that ASAP. Thanks for bringing this to our attention!
Also, Promise<LanguageTranslatorV3.Response<NodeJS.ReadableStream | Buffer>> It seems that the Response was refactored to include the buffer inside the response, instead of extending, as I understand, in the typing (v3.d.ts).
Indeed
This issue has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Remember, an issue is not the place to ask questions. If you have issues with the APIs or have a question about the Watson services, see Stack Overflow.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Check service status
Overview Following Language Translator Getting Started
Expected behavior File gets written to.
Actual behavior
error: TypeError: result.pipe is not a function
How to reproduce A document has been requested to translate, document id has been created, status is 'available'
SDK Version "ibm-watson": "^5.5.0",
Additional information:
Node
are you using? v12.16.1Additional context All of the other methods work, seems the problem is in the result, which is also circular (revealed via JSON.stringify).