Debug - Heroku App (NodeJS) fails to send message to Dialogflow

Folyamatban Kiadva: 4 évvel ezelőtt Kiszállításkor fizetve
Folyamatban 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.

Node.js JavaScript Szoftverarchitektúra Heroku

Projektazonosító: #22521975

A projektről

2 ajánlat Távolról teljesíthető projekt Utoljára aktív: 4 évvel ezelőtt

Odaítélve:

parthkakadia143

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.

€29 EUR 5 napon belül
(0 értékelés)
0.0

2 szabadúszó tett átlagosan 25€ összegű árajánlatot erre a munkára

wolfman199311

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

€20 EUR 7 napon belül
(1 Visszajelzés)
2.2