-
Notifications
You must be signed in to change notification settings - Fork 641
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
http doesn't get executed #528
Comments
Same issue with me. var http = require('http');
var options = {
host: '10.10.60.1',
port: '30200',
path: '/api/v1/action/action?id=572&actionType=TOGGLE&delayOn=00:00:00&delayOff=00:00:00'
};
http.request(options).end(); Executing this file through cmd (>node req1.js) works perfectly. Now when trying to execute this file though edje.js from within a console application, it doesn't work.
The http.request is not working ! |
Anyone an idea? |
This may be related to #325. See if the latest release ( |
@dpolivy Updated to edge@7.10.0 but still not working. Only thing I want to do is calling a http request. See code above. I hope you can help me. |
@soft-techP Are you using the NuGet package, or the actual npm module? I have a feeling the bits in the NuGet package were not properly updated with the fix. |
The crazy thing is, when I add setTimeout(function (){ }, 1); as last line of code, it works... |
@Davevb @soft-techP OK, update NuGet package is available which includes the right bits to fix the async problem. I think this should address the problem for you. Give them a try! |
@dpolivy Tested this new version and it works! Thanks very much for your help. |
@soft-techP Awesome! Glad we got this figured out. |
When I execute nodeJs in cmd, it works. When I call it from c#, it doesn't
return function (tmpData, callback) {
var http = require('http');
var tmpResponse = 0;
The text was updated successfully, but these errors were encountered: