egg
egg copied to clipboard
🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
### Your detail info about the Bug: 如下是一个调用OpenAI api的controller,请求OpenAI API接口的时候,自定义header带不上。 const Controller = require('egg').Controller; class OpenAIController extends Controller { async completions() { const param = this.ctx.request.body; const apiUrl = `${this.config.openai.baseUrl}/completions`;...
egg 3.15.0 ts 版本,打包pkg时报错 Warning Failed to make bytecode node16-x64 for file C:\snapshot\hackernews-async-ts\node_modules\expo-random\build\Random.js  我没有使用expo-random这个库,不知怎么屏蔽这个库   
### 请详细告知你的新点子(Nice Ideas): 1. 期望Egg最新版本,可以正常使用es6,import,ts写法,(我在用的 egg^2.15.1 版本是不支持这个功能的,如果使用es6,会出现各种报错,奇怪问题) 2. 现在好多库都用的es6,import,ts语法,比如 阿里云短信node sdk,旧版本的egg没办法用这些库,
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): 执行 npm init egg --type=simple 报错了。 ### 可复现问题的仓库地址(Reproduction Repo) x ### Node 版本号: v16.17.0 ### Eggjs 版本号: 最新 ### 相关插件名称与版本号(PlugIn and Name): 无 ###...
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): 环境初始化,需要向mongodb 批量插入数据,遇到这几个问题,翻遍doc也没想到该如何实现: 1. 这些db初始化脚本应该放在那个目录更合适? 2. 如何能调用到config配置和model中定义的schema?不想重复复制一套。 ### 可复现问题的仓库地址(Reproduction Repo) NA ### Node 版本号: 16.13.2 ### Eggjs 版本号: 2.37.0 ### 相关插件名称与版本号(PlugIn and Name): 无 ###...
## Background Server 支持 IPv6 ## Proposal `liste(port, host)` 中的 host 参数可配
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): 1.执行 npm init egg --type=simple 2.出现错误  ### 可复现问题的仓库地址(Reproduction Repo) 无 ### Node 版本号: v16.20.1 ### Eggjs 版本号: 无 ### 相关插件名称与版本号(PlugIn and Name): 无...
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): 通过egg-multipart上传的文件超过默认配置的大小限制,会抛出异常,但是无法删除上传失败的临时文件,上传的临时文件就是egg-mulipart配置的filesize大小,最终会导致服务器存储空间占满 上传文件抛出异常以后,catch中捕获的异常`requestFiles`是空数组 ### 可复现问题的仓库地址(Reproduction Repo) async saveRequestFiles(options = {}) { const ctx = this; const allowArrayField = ctx.app.config.multipart.allowArrayField; let storedir; const requestBody = {};...
### 请详细告知你的新解决思路(Your new RFCs): https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ Windows 10 已经官方支持。 ### 跟进类型(Follow-up Types): - [ ] 这是某个任务 - [ ] 这是一个具体的 PR 的地址(URL)
### 请详细告知你的新点子(Nice Ideas): Can show the full stack ``` 2023-05-07 00:21:53,803 ERROR 62800 nodejs.Error: Save request files failed at Object.saveRequestFiles (/Users/fengmk2/git/github.com/eggjs/examples/multipart-file-mode/node_modules/.store/[email protected]/node_modules/egg-multipart/app/extend/context.js:177:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async multipart (/Users/fengmk2/git/github.com/eggjs/examples/multipart-file-mode/node_modules/.store/[email protected]/node_modules/egg-multipart/app/middleware/multipart.js:13:5) at async...