jbergant / chatbot-for-website-with-react Goto Github PK
View Code? Open in Web Editor NEWChatbot for Website with React
Chatbot for Website with React
Hi,
After a fulfillment method , I deployed the code to heroku. Heroku server works fine with fulfillment route. But While calling /api/df_event_query and /api/df_text_query heroku server shows Request Timeout Error. This Process works fine in local server. I found there is an issue with detectIntent method. can you help me out with this. ?
You have not used setupProxy.js file in the video lectures and my welcome page is not coming . when i try to use proxy it says an error . So , kindly tell an alternative to solve this problem
After Handling Try ad Catch
const asyncHandler = require('express-async-handler');
app.post("/api/df_text_query", asyncHandler(async (req, res) => { let responses = await chatbot.textQuery(req.body.text, req.body.parameters); res.send(responses[0].queryResult); }));
I am stucked with this error on my log.
2020-09-15T23:49:04.360834+00:00 app[web.1]: Error: ERR_OSSL_PEM_NO_START_LINE undefined: Getting metadata from plugin failed with error: error:0909006C:PEM routines:get_name:no start line
I also get Internal Server Error when testing the API post with SERVISTATE.
Please help me.
While deploying on heroku the node server is started but the front end server is not starting
I can't find a solution to this problem. Could you please help me?
2019-04-03T15:34:30.018725+00:00 app[web.1]: Auth error:Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
2019-04-03T15:34:30.022040+00:00 app[web.1]: (node:23) UnhandledPromiseRejectionWarning: Error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: error:0906D06C:PEM routines:PEM_read_bio:no start line
2019-04-03T15:34:30.022042+00:00 app[web.1]: at Object.exports.createStatusError (/app/node_modules/grpc/src/common.js:91:15)
2019-04-03T15:34:30.022044+00:00 app[web.1]: at Object.onReceiveStatus (/app/node_modules/grpc/src/client_interceptors.js:1204:28)
2019-04-03T15:34:30.022045+00:00 app[web.1]: at InterceptingListener._callNext (/app/node_modules/grpc/src/client_interceptors.js:568:42)
2019-04-03T15:34:30.022046+00:00 app[web.1]: at InterceptingListener.onReceiveStatus (/app/node_modules/grpc/src/client_interceptors.js:618:8)
2019-04-03T15:34:30.022048+00:00 app[web.1]: at callback (/app/node_modules/grpc/src/client_interceptors.js:845:24)
2019-04-03T15:34:30.022138+00:00 app[web.1]: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
2019-04-03T15:34:30.022213+00:00 app[web.1]: (node:23) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2019-04-03T15:34:59.941184+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=POST path="/api/df_text_query" host=salty-chamber-61057.herokuapp.com request_id=c6e3b41e-680d-4e7d-9607-893dacee28dc fwd="45.123.218.243" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=https
Hi Jana,
I'm not very familiar with async-await, but to it looks like you miss the error handling when you refactored the code to use async await in this commit 145bdcb
I think that in order to have the same piece of code, the code "await" call should be wrapped in a try/catch block like
try {
const responses = await sessionClient.detectIntent(request)
res.send(responses[0].queryResult)
} catch {
console.error('ERROR:', err);
// send something
}
Thanks for the course. I'm enjoying it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.