Debug - Heroku App (NodeJS) fails to send message to Dialogflow
€8-30 EUR
Kiszállításkor fizetve
My Heroku Chatbot (NodeJS) App was working finally for a week. After that, something happened and no message goes through to Dialogflow anymore.
The Heroku NodeJS error message is:
2019-11-25T17:09:09.308553+00:00 app[web.1]: error sending message to dialogflow! 2019-11-25T17:09:09.308843+00:00 app[web.1]: TypeError: Cannot read property 'charCodeAt' of undefined
The code is:
async function sendToDialogFlow(sender, textString, params) {
sendTypingOn(sender);
try {
const sessionPath = [login to view URL](
config.GOOGLE_PROJECT_ID,
[login to view URL](sender)
);
const request = {
session: sessionPath,
queryInput: {
text: {
text: textString,
languageCode: config.DF_LANGUAGE_CODE,
},
},
queryParams: {
payload: {
data: params
}
}
};
const responses = await [login to view URL](request);
const result = responses[0].queryResult;
handleDialogFlowResponse(sender, result);
} catch (e) {
[login to view URL](' error sending message to dialogflow! ');
[login to view URL](e);
}
}
The whole App is uploaded to here: [login to view URL]
I can give Heroku and Dialogflow access as well.
I can attach any additional info on request.
Projektazonosító: #22521975
A projektről
Odaítélve:
I am software engineer and a computer enthusiast. I myself have build google action using dialogflow. I have also created dynamic action as per the user's actions and interest using fulfillments.
2 szabadúszó tett átlagosan 25€ összegű árajánlatot erre a munkára
Dear Client, I am a web full stack developer. I am strong in Node.js and database programming I've read your proposals carefully and I think I can do it. I have many previous works in this work and I will complete your Továbbiak