planarnetwork / transxchange2gtfs

tool to convert transxchange data into a GTFS feed
30 stars 17 forks source link

Error: Callback called multiple times #35

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have below error for certain files: `

Processing sample.xml
events.js:292
      throw er; // Unhandled 'error' event
      ^

Error [ERR_MULTIPLE_CALLBACK]: Callback called multiple times
    at XMLStream.afterTransform (internal/streams/transform.js:94:31)
    at XMLStream._transform (/usr/local/lib/node_modules/transxchange2gtfs/dist/src/xml/XMLStream.js:22:13)
Emitted 'error' event on XMLStream instance at:
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  code: 'ERR_MULTIPLE_CALLBACK'
}

` sample.zip Is there a way to fix it?

linusnorton commented 3 years ago

This has been fixed in https://github.com/planarnetwork/transxchange2gtfs/commit/52cb1b1b9d7578495518e13cb1454f48a4c68dce and released as version 1.8.1

ghost commented 3 years ago

Thanks @linusnorton.