We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc30ffa commit e785ca5Copy full SHA for e785ca5
services/speech_to_text/v1.js
@@ -391,13 +391,13 @@ module.exports = function (RED) {
391
// console.log('Data Received from Input');
392
// console.log(data);
393
var d = JSON.parse(data);
394
- var newMsg = {payload : JSON.parse(data)};
+ var newMsg = {payload : JSON.parse(data)};
395
if (d) {
396
if (d.error) {
397
// Force Expiry of Token, as that is the only Error
398
// response from the service that we have seen.
399
// report the error for verbose testing
400
- payloadutils.reportError(node,newMsg,e.error);
+ payloadutils.reportError(node,newMsg,d.error);
401
token = null;
402
getToken(determineService())
403
.then(() => {
0 commit comments