thx / rap2-dolores

MIT License
610 stars 254 forks source link

新建仓库BUG:点击创建无反应 #55

Closed AnInputForce closed 6 years ago

AnInputForce commented 6 years ago

后端delos使用的docker镜像 tag1.11 前端nginx + build后的静态页面

无论是直接创建仓库还是在团队创建仓库,均是输入完毕后多次点击创建无反应,弹出窗口也不关闭。 取消后,页面刷新,发现已创建同名仓库若干; 编辑仓库可以正常编辑。

AnInputForce commented 6 years ago

应该是后端报错了:

` SequelizeDatabaseError: Unknown column 'Logger.creatorId' in 'field list' at Query.formatError (/app/node_modules/_sequelize@4.37.10@sequelize/lib/dialects/mysql/query.js:247:16) at Query.handler [as onResult] (/app/node_modules/_sequelize@4.37.10@sequelize/lib/dialects/mysql/query.js:68:23) at Query.Command.execute (/app/node_modules/_mysql2@1.5.3@mysql2/lib/commands/command.js:30:12) at Connection.handlePacket (/app/node_modules/_mysql2@1.5.3@mysql2/lib/connection.js:502:28) at PacketParser.onPacket (/app/node_modules/_mysql2@1.5.3@mysql2/lib/connection.js:81:16) at PacketParser.executeStart (/app/node_modules/_mysql2@1.5.3@mysql2/lib/packet_parser.js:77:14) at Socket. (/app/node_modules/_mysql2@1.5.3@mysql2/lib/connection.js:89:29) at Socket.emit (events.js:180:13) at addChunk (_stream_readable.js:274:12) at readableAddChunk (_stream_readable.js:261:11) at Socket.Readable.push (_stream_readable.js:218:10) at TCP.onread (net.js:581:20)

SequelizeDatabaseError: Field 'createdAt' doesn't have a default value at Query.formatError (/app/node_modules/_sequelize@4.37.10@sequelize/lib/dialects/mysql/query.js:247:16) at Query.handler [as onResult] (/app/node_modules/_sequelize@4.37.10@sequelize/lib/dialects/mysql/query.js:68:23) at Query.Command.execute (/app/node_modules/_mysql2@1.5.3@mysql2/lib/commands/command.js:30:12) at Connection.handlePacket (/app/node_modules/_mysql2@1.5.3@mysql2/lib/connection.js:502:28) at PacketParser.onPacket (/app/node_modules/_mysql2@1.5.3@mysql2/lib/connection.js:81:16) at PacketParser.executeStart (/app/node_modules/_mysql2@1.5.3@mysql2/lib/packet_parser.js:77:14) at Socket. (/app/node_modules/_mysql2@1.5.3@mysql2/lib/connection.js:89:29) at Socket.emit (events.js:180:13) at addChunk (_stream_readable.js:274:12) at readableAddChunk (_stream_readable.js:261:11) at Socket.Readable.push (_stream_readable.js:218:10) at TCP.onread (net.js:581:20)

`

AnInputForce commented 6 years ago

找到原因了:是自己多执行了sql语句。