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

Is it possible to run a service from cli? ```js class UserService extends Service { async find(uid) { const user = await this.ctx.db.query('select * from user where uid = ?',...

Inactive

``` _createStream() { mkdirp.sync(path.dirname(this.options.file)); const stream = fs.createWriteStream(this.options.file, { flags: 'a' }); const onError = err => { console.error('%s ERROR %s [egg-logger] [%s] %s', utility.logDate(','), process.pid, this.options.file, err.stack); this.reload(); //...

Inactive

## 最小可复现仓库 https://github.com/hythl0day/eggjs_passport_test ## 复现步骤,错误日志以及相关配置 (类型文件安装自:@types/passport-local) 打开app.js文件 内容完全复制自[官方示例代码](https://eggjs.org/zh-cn/tutorials/passport.html)但改写为typescript的方式。 然后在下面这个函数中遇到了类型错误的提示 ```typescript app.passport.use(new LocalStrategy({ passReqToCallback: true, }, (req, username, password, done) => { // format user const user = { provider: 'local',...

Inactive

## Background When server closes connection at unfortunate time ([keep-alive race](https://code-examples.net/en/q/28a8069)), the http client will throw a `ECONNRESET` error. Under this circumstance, `agentkeepalive` add `req.reusedSocket` to detect whether request is...

Inactive

我发现在同一个接口 不同的请求加入事务后,数据更新不是每次都成功, 以下是我的服务端代码 async del(body) { const { ctx, app } = this; const session = await app.mongoose.startSession({ //readPreference: { mode: 'primary' }, }); try { const tool = new...

Inactive

## What happens? 1.app.js 在 beforeClose 中使用ipc广播 2.mock使用cluster启动 3.当app关闭时会触发一个channel closed的警告 不清楚是否是因为进程关闭顺序有问题。 ## Mini Showcase Repository(REQUIRED) https://github.com/XueRainey/egg-mock-bug.git ## How To Reproduce **Steps to reproduce the behavior:** 1. npm i 2. npm...

Inactive
maybe-bug

- `/upload/office`: only allow `.docx`, `.xlsx`, `.pptx` - `/upload/image`: images only - `/upload/others`: like `.zip`, `.tgz` and so on.

plugin: egg-multipart
Inactive

### 关于 `egg-graphql` 的结构问题 `egg-graphql` 将每个 `graphql` 模型分为 `schema.graphql`、`resolver.js`、`connector.js` 三个文件。按照规定做了一段时间。发现原先的 `service` 被架空了。如果要写 `service`,那么直接从 `resolver.js` 调用 `service` 好了,`connector.js` 就没必要存在。 另外访问 `this.ctx.connector.xxxXxxx` 下划线文件夹到驼峰式没有转换,只能 `this.ctx.connector.xxx_xxx` 访问,这算 bug 么。

Inactive

https://github.com/mashpie/i18n-node 这个库的 star 数还挺高,API 也类似,看看切换成本高不高

PR is welcome
type: feature
Inactive

这样可以以最简单的方式部署 egg 应用。

type: feature
Inactive