egg icon indicating copy to clipboard operation
egg copied to clipboard

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa

Results 351 egg issues
Sort by recently updated
recently updated
newest added

RT,我用socket-client 3.0 去连接 egg-socket.io的例子,发现连不上。研究了下,发现是版本不对。

PR is welcome
Inactive

## What happens? 使用egg ^2.29.1+egg-socket.io ^4.1.6的时候,一直报Middleware must be composed of functions! 都是按官网配置的,然后通过报错信息,找到了源码中的io.js,发现了一个有点诡异的问题。这边报错的关键点在于io.js中查找sessionMiddleware这里: ``` const sessionMiddleware = app.middleware.filter(mw => { return mw._name && mw._name.startsWith('session'); })[0]; ``` 打印出来是undefined,但是如果把[0]去掉,是可以打印`[AsyncFunction (anonymous)]`的,而且如果把filter()[0]改成find(),也能找到对象。我尝试打印如下代码: ``` let zzz...

Inactive

一段时间不操作数据库之后,再进行操作,比如执行await app.mysql.query(..)时就要很久才能返回(很多时候对于前端来说就超时直接返回接口调用失败了),目测是长时间没操作数据库连接断开了,在egg-mysql文档里面没看到有检测连接状态和重连的方法,不知道大家是怎么处理这种情况的呢 ?

Inactive

请问怎么在Azure上使用?Azure好像需要一个入口文件。它用的是iisnode。有谁成功部署过?麻烦给个示例。万分感谢!

Inactive

## What happens? [email protected] "mongoose": "^5.4.20" 执行bulkWrite时设置了ordered为false,但是当出现错误时,bulkWrite的集合操作全部未执行 ## How To Reproduce **Steps to reproduce the behavior:** 1. ops = [{ 'updateOne': { 'filter': { 'propertie': value1 }, 'update': updateData1, 'upsert':...

Inactive

## 问题描述 当使用集群模式时,`ioredis` 本身可以只配置部分机器。通过 `redisOptions` 配置默认 `option`。 如: redis 集群有 4 台机器 `172.20.10.21 ~ 24`。 `ioredis` 配置: ``` javascript const Redis = require("ioredis"); const nodes = [ 21, 22 ].map(ip...

Inactive

类型声明文件中的clients 是不是应该有RedisOptions改为ClusterOptions,要不然会提示编译出错

Inactive

## What happens? ``` // config.default.js const Op = require('sequelize').Op; // "egg-sequelize": "^5.2.1", exports.sequelize = { dialect: 'mysql', timezone: '+08:00', operatorsAliases: { $eq: Op.eq, $ne: Op.ne, $gte: Op.gte, $gt: Op.gt,...

Inactive

## Background 我在使用 ctx.app.passport.authenticate 时,翻阅了passport的文档的时候发现可以[自定义回调函数](http://www.passportjs.org/docs/authenticate/),而我在 ts 模板中使用回调函数的时候,代码可以跑通,但是 ts 编译报错,因为 egg-passport 的 index.d.ts 里面定义的第二个参数只能传 AuthenticateOptions 类型 ``` js interface EggPassport extends Authenticator { authenticate(strategy: string | string[]): AuthenticateRet; authenticate(strategy: string |...

PR is welcome
Inactive

## Background egg for antd pro这个脚手架更新频率比较慢,pro那边更新的很快,想使用最新的feature,把pro最新的代码替换进来后,这个脚手架配置起来还是出了一些问题,比如无法在生产环境切换主题 ## Proposal 希望eggjs/egg-ant-design-pro可以定期更新,感觉pro+egg是真香,希望内部项目可以尽快用起来

PR is welcome
Inactive