Git Product home page Git Product logo

genal-chat's Issues

没有找到后端的sql文件

Unable to connect to the database. Retrying (1)... +35ms
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

建议:注册和登录机制

你好 阿童木聊天室 核心开发人员

建议使用这种登录机制

  • 只能通过验证码登录,邮箱接收手机号验证码
  • 给用户一个随机电话号码。 您可以创建自己的区号示例 有几个未使用的前缀。 三位数前缀太多,二位数前缀是三个; +23、+83、+89……

Invalid value for username

运行server端的时候报错:
image
app中采用的的配置
image
Mysql的密码为123456,默认账户root

启动报错

您好,后端项目启动报如下错误,无法定位错误原因,麻烦指点一下
[6:21:11 PM] Starting compilation in watch mode...

[6:21:15 PM] Found 0 errors. Watching for file changes.

[Nest] 7923 - 08/04/2022, 6:21:16 PM [NestFactory] Starting Nest application...
[Nest] 7923 - 08/04/2022, 6:21:16 PM [InstanceLoader] AppModule dependencies initialized +66ms
[Nest] 7923 - 08/04/2022, 6:21:16 PM [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 7923 - 08/04/2022, 6:21:16 PM [InstanceLoader] PassportModule dependencies initialized +0ms
[Nest] 7923 - 08/04/2022, 6:21:16 PM [InstanceLoader] JwtModule dependencies initialized +1ms
[Nest] 7923 - 08/04/2022, 6:21:16 PM [TypeOrmModule] Unable to connect to the database. Retrying (1)... +81ms
QueryFailedError: ER_INVALID_DEFAULT: Invalid default value for 'username'
at new QueryFailedError (/usr/local/chat-server/node_modules/typeorm/error/QueryFailedError.js:11:28)
at Query. (/usr/local/chat-server/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:170:45)
at Query. (/usr/local/chat-server/node_modules/mysql/lib/Connection.js:526:10)
at Query._callback (/usr/local/chat-server/node_modules/mysql/lib/Connection.js:488:16)
at Query.Sequence.end (/usr/local/chat-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at Query.ErrorPacket (/usr/local/chat-server/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
at Protocol._parsePacket (/usr/local/chat-server/node_modules/mysql/lib/protocol/Protocol.js:291:23)
at Parser._parsePacket (/usr/local/chat-server/node_modules/mysql/lib/protocol/Parser.js:433:10)
at Parser.write (/usr/local/chat-server/node_modules/mysql/lib/protocol/Parser.js:43:10)
at Protocol.write (/usr/local/chat-server/node_modules/mysql/lib/protocol/Protocol.js:38:16)
[Nest] 7923 - 08/04/2022, 6:21:19 PM [TypeOrmModule] Unable to connect to the database. Retrying (2)... +3030ms
QueryFailedError: ER_INVALID_DEFAULT: Invalid default value for 'username'
at new QueryFailedError (/usr/local/chat-server/node_modules/typeorm/error/QueryFailedError.js:11:28)
at Query. (/usr/local/chat-server/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:170:45)
at Query. (/usr/local/chat-server/node_modules/mysql/lib/Connection.js:526:10)
at Query._callback (/usr/local/chat-server/node_modules/mysql/lib/Connection.js:488:16)
at Query.Sequence.end (/usr/local/chat-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at Query.ErrorPacket (/usr/local/chat-server/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
at Protocol._parsePacket (/usr/local/chat-server/node_modules/mysql/lib/protocol/Protocol.js:291:23)
at Parser._parsePacket (/usr/local/chat-server/node_modules/mysql/lib/protocol/Parser.js:433:10)
at Parser.write (/usr/local/chat-server/node_modules/mysql/lib/protocol/Parser.js:43:10)
at Protocol.write (/usr/local/chat-server/node_modules/mysql/lib/protocol/Protocol.js:38:16)

关于在树莓派3A+上部署的问题

ERROR Error loading /home/pi/genal-chat-master/genal-chat-client/vue.config.js:
ERROR SyntaxError: Invalid or unexpected token
/home/pi/genal-chat-master/genal-chat-client/node_modules/ajv-keywords/index.js:5
@-webkit-keyframes antCheckboxEffect {
^

SyntaxError: Invalid or unexpected token
at wrapSafe (internal/modules/cjs/loader.js:1001:16)
at Module._compile (internal/modules/cjs/loader.js:1049:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object. (/home/pi/genal-chat-master/genal-chat-client/node_modules/webpack/node_modules/schema-utils/src/validateOptions.js:13:18)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: vue-cli-service build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-27T10_24_28_723Z-debug.log

编译时报错,不知道如何解决

输入框建议

建议把输入框 input 更换成 textarea
用以支持多行内容

web3

你好,我打算用你的前端项目做一个基于web3的聊天项目,请问是否许可?遇到问题是否有联系方式请教呢?

npm run build warning

root@ice:~/chat/genal-chat-6.0.0/genal-chat-client#  npm i

> [email protected] install /root/chat/genal-chat-6.0.0/genal-chat-client/node_modules/yorkie
> node bin/install.js

sh: node: command not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] install: `node bin/install.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-11-02T09_22_44_081Z-debug.log

建议接入语音播放消息

可以让用户选择是否开启语音播放聊天消息 这样就不用一直盯着聊天室 可以一边做其他事一边听聊天室的消息

npm build之没有生成dist目录

运行完npm run build之后
image

运行环境Vultr虚拟机Alma Linux
尝试找了一下当前目录,以及Ngin的安装目录,都没有找到

不兼容IE11

hi,作者你好,我在运行这个项目的时候发现不兼容IE11浏览器,主要是以下原因导致的:

  1. viewer和object-assign这两个依赖在编译后依然会有箭头函数和let关键字,而这两个特性在IE11上不支持

我按vuecli4官网提供的方法改过配置,包含修改matin.ts时的包引入和babel.config.js的相关配置,但编译后的包依然包含上述两个新特性

这个有解决办法吗

【nginx.conf 】 修改建议

大佬你好,部署的时候发现一个小问题.

依照readme中nginx.conf配置,生产环境中访问页面全部css会失效并报错如下:

Resource interpreted as Stylesheet but transferred with MIME type text/plain...
http{
include mime.types; // 需要补充这个配置
....
}

关于nestJS后台维护sockeIO实例的性能开销问题

大神您好,跟着你的博客找到了这里,最近我也在用nestjs作为后端开发聊天功能,想问一下按你这里每个用户都建一个socket房间的方法的话,具体性能开销有测试过吗,用户量上去之后会有性能问题吗? Server这里是会一直维持每一个socket的room的实例还是只有client发送信息的时候才会新建一个room实例呀? 烦请大神赐教哈~

无法创建群

rt 创建群之后,提交没有反应。
另外如何让创建的群默认显示在所有注册用户的列表上?

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.