on 2016 Feb 10 11:47 AM
I'm encountering a problem using the 'callback' form of 'connect' in the JavaScript External Environment.
The problem is that the callback code doesn't seem to be executed. If I use the synchronous version of 'connect', things work as expected.
I have greated a github gist at (https://gist.github.com/twilkinson/00748d66bef5fff91852) that illustrates the problem.
There are 2 files:
You can see the output in *C:\\Temp\\tests.log".
All that shows in tests.log are the lines
start of test1A end of test1Awhere I would expect to also see the first 10 lines of the Customers table.
It is acting as if the script is terminated without waiting for the asynchronous code to complete. If I run similar code under nodejs directly, it behaves as I would expect with the first 10 lines of the Customer table showing up in the output file.
This occurs with the latest SA17 Developer Edition under both Windows and Linux.
Suggestions?
Thanks,
Request clarification before answering.
User | Count |
---|---|
50 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.