-
Notifications
You must be signed in to change notification settings - Fork 18
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
TypeError: Cannot read properties of null (reading 'length') #108
Comments
failed for the 2nd time today with same issue, usually runs 3 or 4 times a week so very intermittent |
Hi @amcintyre98 , the contents in this member are random generated or fixed? Is it possible no |
It's very intrmittent but always fails in the same place. So no, I run it again and there is data in mems and no issue. And no the data is not random generated, it's always the same. I think it's something in the await za.downloadDataset that's failing sometimes. All I can think of are changes that get around the problem but don't fix what is wrong with the await line. |
If any failure, it's expected to receive exception. If |
The var mems is a string created from memb which is the buffer returned for the entire member from the await, so no, not a single line string. It always has the entire member in it. Again, rerunning with exact same input and it works fine. Printing mems would just return null. And the dataset is NOT migrated. |
Happened again for the 3rd time. Thinking about how to work around, like retrying the await za.downloadDataset. |
While the LPAR was bumping 100% I submitted the job again and it failed in a new way on 2 different submissions. Both calling out different UV_xxxx modules. I'm starting to think there is some issue with Node z/OS 20.16. I did have this line in my shell script that I just commented out so will go back to default. Let's see if it settles down. |
Running your latest release 2.0.12 with node v20.16 on z/OS.
This code has been working fine with only this single issue (one time failed). Ran a 2nd time and worked so sounds performance related.
memb = await za.downloadDataset(dsn + '(' + ent.name + ')')
mems = memb.toString()
mcnt = mems.match(/\n/g).length
One time got this error. Rerunning with same input works fine.
mcnt = mems.match(/\n/g).length
¬
TypeError: Cannot read properties of null (reading 'length')
at main (/XSYS/u/z1234567/genxlsx.js:230:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
thanks,
Andrew
The text was updated successfully, but these errors were encountered: