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 property 'toString' of undefined #471
Comments
Hmm... This is really quite strange... @ps06756, would it be possible for you to share the |
I am using the following jar. If I run the same command, from a terminal then the command runs without any problem. |
@ariporad Are you still looking into this? |
I saw a related error on an OS X Travis worker. Here's a screenshot, in case the build restarts and wipes out this log: |
@ps06756: Sorry for the delay, I've been really busy recently. Could you try this with the |
Yes, that's the PR in which the error occurred. I posted it, not to suggest that it's occurring on master branch, but as an example of the error to help with debugging this issue, since neither you nor I have seen the bug pop up in our usage of ShellJS. |
What? |
I'm getting this issue pretty frequently when running a development server with
On MacOS X 10.11.6 (El Capitan), Node 4.3.2. I reproduce this at least twice a day. @ariporad Would you like me to try something to help out with debugging? I can run the |
@eisenbergrobin: Sure, if you wouldn't mind trying out the |
Tried putting your You are missing a trailing double-quote and comma here and a comma here. I fixed it locally, but you might want to fix it on your branch :) So I'm now running this, I'll get back to you if I get any interesting debug information. |
@eisenbergrobin: Continually proving my geinousnessness. 😄 Fixed. |
Reproduced it. Here is the extra information from your
So it seems I am exceeding the max Thanks for the help :) |
For those of you having the same issue when running a development server under I fixed it by making my middleware less verbose when rebuilding:
That means less lines are printed, and I still get information on whether the build was successful and what went wrong. |
@eisenbergrobin: Have you tried changing the maxBuffer? |
@ariporad: Continually proving my geniusness 😄 . I had no idea I could pass options from node::child_process to shelljs::exec to handle this. I haven't reproduced the issue since the fix described above (since my webpack output was way too verbose anyways), but I increased the buffer size in any case:
Thanks for your help :) |
Sounds like the root cause of this issue has been solved, so I'll go ahead and close this. Please ping this thread if the |
Node version:
4.4.4
ShellJS version (the most recent version/Github branch you see the bug on):
0.7.0
Operating system:
OSX 10.11.5 El Captain
Description of the bug:
Typerror while using shell.exec
Example ShellJS command to reproduce the error:
java -jar CMDRunner.jar --tool Reporter --generate-png test.png --input-jtl results.jtl --plugin-type ResponseTimesOverTime --width 800 --height 600
I cannot find a simple command which reproduces the above issue, I am attaching a screenshot of the error message I am getting.
The text was updated successfully, but these errors were encountered: