Coder Social home page Coder Social logo

chatbot-for-website-with-react's People

Contributors

jbergant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chatbot-for-website-with-react's Issues

deployment issue

While deploying on heroku the node server is started but the front end server is not starting

Issue after deploying it in heroku

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. ?

Deploy to Heroku Error

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
cmd_1
cmd_2

Error: ERR_OSSL_PEM_NO_START_LINE undefined:

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.

[QUESTION] S4-005-Text-query-to-DialogFlow-with-Async-await

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.

front end is not connecting with backend

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.