We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gets below error every time doing Line webhook call because processMessage in linebot.js do not return Promise and doing error handling inside....
[ERROR] Error while message processing TypeError: Cannot read property 'catch' of undefined
apiaiRequest.on('response', (response) => { this.processAiResponse(chatId, response, message.replyToken) .then(() => this.log('Message sent')) .catch((err) => this.logError(err)) });
Fix Just check if return value is valid. app.js
var result = bot.processMessage(item, res); if (result) { result.catch(err => console.error(err)); }
or just delete '.catch(err => console.error(err));'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Gets below error every time doing Line webhook call because processMessage in linebot.js do not return Promise and doing error handling inside....
Fix
Just check if return value is valid.
app.js
or just delete '.catch(err => console.error(err));'
The text was updated successfully, but these errors were encountered: