Comments (7)
Ok, good, I'll check the differences over the weekend and I'll try to figure out what went down.
4.23 may rely on a bit older papaparse, but that should not affect the parsing. There may be some things missing around rate and exec, but I don't see you using this.
from scramjet.
@KwangGan if you could post a sample CSV link here so we could try to reproduce the problem.
Two things may be important:
- The csv should include similar data - like if there's some Thai chars it would be good to provide similar example
- The length of the csv - if that's smaller than the batch size we should keep it that way.
Here's the overall bugfixing procedure:
- Isolate the test case reproducing the issue
- Add the test case to scramjet/test/methods (or if that's multi-method we'll find a better place)
- Fix the issue.
- Confirm issue resolution on your end.
- Bugfix release.
from scramjet.
Thank you for reopen issue
-
I tried decrease batch size to 1 or increase to 500 but no luck.
-
This is my CSV file that contain only EN alphabet.
https://ybin.me/p/b2a673d1480d1c94#WGKBUy47K9F/ZaRyg5/xEd581xCW9hy+E6VkQOfmCKE= -
this is my code using multer_s3 and express js for handle request and upload.
with this code I managed to upload and parse file URL to axios and pipe stream data to Stringstream convert everything to the new Json object and then process stalled at batch function
https://ybin.me/p/4f62a44fa86cb9a7#W2Asc7kv9vX2JQw2D8TqUikJPgwMRiB4Sjyhz73fUxs=
- here my package.json
https://ybin.me/p/c96db83f4852f288#LDqRVel2AMDFcBhcbxZG0oqHQv5pc820fNhP1XYF6Dk=
node 10.15
Best Regards
from scramjet.
My solution for now is Downgrade to v4.23 and everything works as expect :D
from scramjet.
@KwangGan I have tested batch in your scenario and I don't think it's our case (I've added some special tests that should cover the case).
I believe your code may be affected by a change in pull
which in turn handles the function*
slightly different. Can you try a slightly different way of getting the stream?
StringStream
.from(async function () {
const response = await axios.get(csv_url, {
responseType: 'stream'
})
return response.data.pipe(stripBomStream())
}, { maxParallel: 4 })
I'm not sure if this helps but the answer will lead me somewhere...
from scramjet.
@KwangGan could you create some kind of a repo (or fork of scramjet) that would have a test for you scenario?
from scramjet.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from scramjet.
Related Issues (20)
- MultiStream.map(...).mux is not a function HOT 2
- Parsing CSV files of certain arbitrary lengths suddenly stops HOT 7
- StringStream.whenEnd produces UnhandledPromiseRejectionWarning on error HOT 4
- Using scramjet to concate and split data received with socket HOT 10
- DataStream.toJSONArray causes an exception on empty input HOT 5
- Fail when plugin adds a new class twice HOT 1
- I would like to pin this repository to my GH profile HOT 1
- Stateful stream transformation HOT 3
- Class 'PromiseTransform' incorrectly implements class 'Readable' HOT 6
- DataStream.distribute causes ReferenceError when using external function inside HOT 1
- Iterating each chunk with async function with stopping stream HOT 2
- Runner failed error HOT 3
- Cannot stop instance HOT 3
- 'Sequence unpack failed' issue HOT 9
- Instance timeout
- Runner failed error HOT 2
- Slow execution time of reading a big file HOT 4
- Drag n drop into 'add sequence' multiple times spams seq list HOT 1
- Add sequence's remove button on the list page
- Getting error Class 'PromiseTransform' incorrectly implements class 'Readable' and 'Writable' HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scramjet.