Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Max Listeners Exceeded warning

Chiusa
#87 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
backend

Direzione di ricerca

Reproduce with npm install, npm start init-store, npm start, then open localhost:8080 and mws-docs. Start at packages/server/src/streamer.ts:543 and trace the calls through WikiStateStore.ts:254, 328, 259, and 233. Done means mws-docs opens without the MaxListenersExceededWarning.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[BUG] Crash after Fresh Install on Windows

  • I did completely remove the MultiWikiServer directory.
  • git clone https://github.com/TiddlyWiki/MultiWikiServer.git -> OK
  • cd MultiWikiServer && npm install -> OK

npm start init-store

shows this:

PS E:\git\tiddly\tiddlywiki\MultiWikiServer> npm start init-store

> @tiddlywiki/[email protected] start
> node scripts.mjs start init-store

TSC dist/mws.d.ts
v22.14.0
Password master key created at E:\git\tiddly\tiddlywiki\MultiWikiServer\dev\wiki\passwords.key
DEV: Tiddler $:/plugins/tiddlywiki/tiddlyweb field plugin-priority was not a string
DEV: Tiddler $:/languages/de-AT field plugin-priority was not a string
DEV: Tiddler $:/languages/de-CH field plugin-priority was not a string
DEV: Tiddler $:/languages/de-DE field plugin-priority was not a string
DEV: Tiddler $:/languages/en-US field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-CN field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-Hans field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-Hant field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-HK field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-TW field plugin-priority was not a string
DEV: Tiddler $:/plugins/mws/client field plugin-priority was not a string
New migrations found [
  '20250606001949_init',
  '20250613000526_remove_group',
  '20250620014502_settings',
  '20250707205229_recipes'
]
Applying migration 20250606001949_init
Applying migration 20250613000526_remove_group
Applying migration 20250620014502_settings
Applying migration 20250707205229_recipes
Migrations applied [
  '20250606001949_init',
  '20250613000526_remove_group',
  '20250620014502_settings',
  '20250707205229_recipes'
]
Default user created with username 'XXXX' and password 'XXXX'. Please change this password after logging in.
load-wiki-folder complete: E:\git\tiddly\tiddlywiki\MultiWikiServer\editions\mws-docs
load-wiki-folder complete: E:\git\tiddly\tiddlywiki\MultiWikiServer\node_modules\tiddlywiki\editions\tw5.com
load-wiki-folder complete: E:\git\tiddly\tiddlywiki\MultiWikiServer\node_modules\tiddlywiki\editions\dev
load-wiki-folder complete: E:\git\tiddly\tiddlywiki\MultiWikiServer\node_modules\tiddlywiki\editions\tour

npm start

shows this

> @tiddlywiki/[email protected] start
> node scripts.mjs start

TSC dist/mws.d.ts
v22.14.0
[ '--listener' ]
DEV: Tiddler $:/plugins/tiddlywiki/tiddlyweb field plugin-priority was not a string
DEV: Tiddler $:/languages/de-AT field plugin-priority was not a string
DEV: Tiddler $:/languages/de-CH field plugin-priority was not a string
DEV: Tiddler $:/languages/de-DE field plugin-priority was not a string
DEV: Tiddler $:/languages/en-US field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-CN field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-Hans field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-Hant field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-HK field plugin-priority was not a string
DEV: Tiddler $:/languages/zh-TW field plugin-priority was not a string
DEV: Tiddler $:/plugins/mws/client field plugin-priority was not a string
Listening on { address: '::1', family: 'IPv6', port: 8080 }
  • Open localhost:8080
  • LogIn as admin
  • Try to open mws-docs ERROR
(node:7192) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added to [Gzip]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at _addListener (node:events:592:17)
    at Gzip.addListener (node:events:610:10)
    at Gzip.Readable.on (node:internal/streams/readable:1128:35)
    at Gzip.once (node:events:654:8)
    at file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/server/src/streamer.ts:543:55
    at new Promise (<anonymous>)
    at _Streamer.write (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/server/src/streamer.ts:543:14)
    at writeTiddler (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/managers/WikiStateStore.ts:254:19)
    at _WikiStateStore.serveStoreTiddlers (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/managers/WikiStateStore.ts:328:7)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _WikiStateStore.writeStoreTiddlers (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/managers/WikiStateStore.ts:259:5)
    at _WikiStateStore.serveIndexFile (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/managers/WikiStateStore.ts:233:7)
    at file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/managers/wiki-index.ts:100:7
    at Proxy._transactionWithCallback (E:\git\tiddly\tiddlywiki\MultiWikiServer\prisma\client\runtime\library.js:10368:15)
    at _StateObject.$transaction (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/RequestState.ts:44:12)
    at Object.handler (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/mws/src/managers/wiki-index.ts:98:5)
    at _Router.handleRoute (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/server/src/router.ts:163:7)
    at _Router.handleStreamer (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/server/src/router.ts:114:14)
    at _Router.handleRequest (file:///E:/git/tiddly/tiddlywiki/MultiWikiServer/packages/server/src/router.ts:54:5)
Lingua principale
TypeScript
Stelle
60
Fork
17
Merge medio
4m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TiddlyWiki/MultiWikiServer

Tutte le issue di TiddlyWiki/MultiWikiServer

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.