Not able to import
-
I'm facing to trouble when trying import exported zip file. Is there something else needed to import it?
Error: too many bytes in the stream. expected 0. got at least 105 at AssertByteCountStream._transform (/app/node_modules/yauzl/index.js:645:15) at AssertByteCountStream.Transform._read (_stream_transform.js:191:10) at AssertByteCountStream.Transform._write (_stream_transform.js:179:12) at doWrite (_stream_writable.js:441:12) at writeOrBuffer (_stream_writable.js:425:5) at AssertByteCountStream.Writable.write (_stream_writable.js:316:11) at InflateRaw.ondata (_stream_readable.js:714:22) at InflateRaw.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at InflateRaw.Readable.push (_stream_readable.js:209:10) at InflateRaw.Transform.push (_stream_transform.js:152:32) at Zlib.processCallback (zlib.js:531:10)... Error: Error: too many bytes in the stream. expected 0. got at least 105 at AssertByteCountStream._transform (/app/node_modules/yauzl/index.js:645:15) at AssertByteCountStream.Transform._read (_stream_transform.js:191:10) at AssertByteCountStream.Transform._write (_stream_transform.js:179:12) at doWrite (_stream_writable.js:441:12) at writeOrBuffer (_stream_writable.js:425:5) at AssertByteCountStream.Writable.write (_stream_writable.js:316:11) at InflateRaw.ondata (_stream_readable.js:714:22) at InflateRaw.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at InflateRaw.Readable.push (_stream_readable.js:209:10) at InflateRaw.Transform.push (_stream_transform.js:152:32) at Zlib.processCallback (zlib.js:531:10)... at AssertByteCountStream._transform (/app/node_modules/yauzl/index.js:645:15) at AssertByteCountStream.Transform._read (_stream_transform.js:191:10) at AssertByteCountStream.Transform._write (_stream_transform.js:179:12) at doWrite (_stream_writable.js:441:12) at writeOrBuffer (_stream_writable.js:425:5) at AssertByteCountStream.Writable.write (_stream_writable.js:316:11) at InflateRaw.ondata (_stream_readable.js:714:22) at InflateRaw.emit (events.js:311:20) at addChunk (_stream_readable.js:294:12) at readableAddChunk (_stream_readable.js:275:11) at InflateRaw.Readable.push (_stream_readable.js:209:10) at InflateRaw.Transform.push (_stream_transform.js:152:32) at Zlib.processCallback (zlib.js:531:10)... at f (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:1:818366) at http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:1:819089 at b.callback (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:39:8120) at b.<anonymous> (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:39:6090) at b.r.emit (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:6:109337) at XMLHttpRequest.t.onreadystatechange (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:39:9813) From previous event: at T.j [as _captureStackTrace] (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:1:1059825) at T._resolveFromExecutor (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:1:1089522) at new T (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:1:1082760) at Object.d.forEach.h.<computed> [as post] (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:1:818620) at Object._.methods.forEach.n.API.<computed> [as post] (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:83:287757) at ImportModal._callee$ (http://172.26.240.11:5488/studio/assets/studio-extensions.client.6a5cad9dde67859271c1.js:1019:53) at m (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:39:219330) at Generator._invoke (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:39:219083) at Generator.forEach.e.<computed> [as next] (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:39:219510) at step (http://172.26.240.11:5488/studio/assets/studio-extensions.client.6a5cad9dde67859271c1.js:842:191) at http://172.26.240.11:5488/studio/assets/studio-extensions.client.6a5cad9dde67859271c1.js:842:437 at new Promise (<anonymous>) at ImportModal.<anonymous> (http://172.26.240.11:5488/studio/assets/studio-extensions.client.6a5cad9dde67859271c1.js:842:99) at ImportModal.validate (http://172.26.240.11:5488/studio/assets/studio-extensions.client.6a5cad9dde67859271c1.js:1057:21) at onClick (http://172.26.240.11:5488/studio/assets/studio-extensions.client.6a5cad9dde67859271c1.js:1345:33) at Object.s (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:458) at f (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:601) at http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:747 at v (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:833) at at (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:16338) at ot (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:16171) at st (http://172.26.240.11:5488/studio/assets/client.721def965dc7b7e2a98c.js:55:16527)
Thanks
-
Would you be able to upload somewhere the export zip and share a link here?
-
There is problem with exported file. I need to unzip and zip it manually instead of using directly exported file.
-
That is very strange. Are you sure the exported file isn't modified by something?
-
Hi Jan,
I am experiencing the same issue. I can privately send you my example export via email if that helps. You will see if in your email shortly.
-
I am also having this issue - is there any guidance?
I have recently updated node if that is any help?
-
@AB-D We didn't find a reason for this so far. The @Cameron-Forward problem got solved by reinstalling jsreport on local env. Note that nodejs 16 doesn't work well with jsereport v2. You will need node 14 in order to properly export.