Giter VIP home page Giter VIP logo

chatbot-back's People

Contributors

dependabot[bot] avatar matthieu-r avatar vincentlaine avatar

Watchers

 avatar  avatar  avatar  avatar

chatbot-back's Issues

Stuck at module initialization

Hello,

I'm trying to deploy backend of the chatbot. After adding information about my database and do npm install and npm run start:dev got stuck at the the line const app = await NestFactory.create(AppModule); (in file main.ts)
as in the image below:
image

I've never used Nestjs before and I'm new to backend, did I miss any steps?

Thanks a lot!

Health

Faire un point d'entrée ou l'on peut savoir:

  • Santé du back
  • Santé du chatbot
  • Versions

Protéger via CORS.

Division by zero when accessing statistics

App version: latest (b0e8bc0)
PostgreSQL version: 14
Operating System: Debian bullseye (containerized)

Hi, on a brand new setup of a chatbot, when accessing the statistics page on the back office, several API calls are done. They all succeed except for one: /api/stats/kpi_data.
It returns an HTTP 500, and in the server log the sole error that is outputted is the following.

ERROR [QueryFailedError: division by zero
    at PostgresQueryRunner.query (/var/www/chatbot-back/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SelectQueryBuilder.loadRawResults (/var/www/chatbot-back/node_modules/typeorm/query-builder/SelectQueryBuilder.js:2183:25)
    at async SelectQueryBuilder.getRawMany (/var/www/chatbot-back/node_modules/typeorm/query-builder/SelectQueryBuilder.js:645:29)
    at async SelectQueryBuilder.getRawOne (/var/www/chatbot-back/node_modules/typeorm/query-builder/SelectQueryBuilder.js:627:17)] division by zero

With debug mode enabled no additional data seems to appear (about the SQL request or else)

DEBUG=*

Is it a known bug?
Are do someone as any idea of where it could come from?

More granular environment variable. And clarify what "INTRADEF" does.

The INTRADEF environment variable defines other configs (mostly security config) at multiple points.

But in an environment other than INTRADEF we may want to use different configs for some modules. For e.g, we maybe would like to use TLS for nodemailer but not for the form. Or even use another rasa binary path.

It would be great to have an independent environment variable for each of those elements. And it would have a default value if the INTRADEF is defined.

Securité

Se renseigner sur les goods practices sur d'autres projets au niveau de la sécurité au niveau des serveurs.

Stats 📊

Endpoint statistique avec comme entrée une date de début & une date de fin.

Si pas de date -> les 30 derniers jours.

Retourner les stats sur cette plage de date.
A voir comment tester les perfs des requêtes SQL.

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.