Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config/plugin.js 中配置 ratelimiter egg报错 #5

Open
MoNaiZi opened this issue Apr 14, 2023 · 0 comments
Open

config/plugin.js 中配置 ratelimiter egg报错 #5

MoNaiZi opened this issue Apr 14, 2023 · 0 comments

Comments

@MoNaiZi
Copy link

MoNaiZi commented Apr 14, 2023

// config/plugin.js
module.exports = {
mongoose: {
enable: true,
package: 'egg-mongoose',
},
jwt: {
enable: true,
package: "egg-jwt",
},
cors: {
enable: true,
package: 'egg-cors',
},
ratelimiter: {
enable: true,
package: 'egg-ratelimiter',
}
};

egg.js@3
[email protected]
[email protected]
[email protected]

2023-04-14 09:54:04,130 ERROR 11672 nodejs.AppWorkerDiedError: [master] app_worker#2:6688 died (code: undefined, signal: null, suicide: false, state: dead), current workers: [20488,6688]
at Master.onAppExit (D:\A_Project\Node.js\mobile-page-builder-server\node_modules_egg-cluster@2.0.1@egg-cluster\lib\master.js:401:21)
at Master.emit (node:events:527:28)
at Messenger.sendToMaster (D:\A_Project\Node.js\mobile-page-builder-server\node_modules_egg-cluster@2.0.1@egg-cluster\lib\utils\messenger.js:137:17)
at Messenger.send (D:\A_Project\Node.js\mobile-page-builder-server\node_modules_egg-cluster@2.0.1@egg-cluster\lib\utils\messenger.js:102:12)
at EventEmitter. (D:\A_Project\Node.js\mobile-page-builder-server\node_modules_egg-cluster@2.0.1@egg-cluster\lib\utils\mode\impl\process\app.js:114:22)
at EventEmitter.emit (node:events:539:35)
at ChildProcess. (node:internal/cluster/primary:203:13)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
name: "AppWorkerDiedError"
pid: 11672
hostname: zmy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant