My back end application keeps having this error. Any way to fix it?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@BrandonPoach Thanks for the feedback! Can you provide more details about the issue? When are you getting this error message?
I got the same error after entering the "node BackEndApplication.js" command in the Call the direct method section.
@BrandonPoach
I fixed this problem by ensuring that the Simulated Device is running before invoking the BackEnd Application.
@JimacoMS3 That seemed to fix the problem. Thanks.
Glad to hear that issue is resolved!
I had this error too. Make sure
var deviceId = 'MyNodeDevice';
in BackEndApplication.js matches the name of the device you are trying to control.
@mjb484 comment worked for me.
use simaulated-device_2 istead of simualted-device app.
SetTelemetryInterval method defined in that app.
@navidarry -- Just checking, this is already explained in the article. Correct?
Most helpful comment
I had this error too. Make sure
var deviceId = 'MyNodeDevice';
in BackEndApplication.js matches the name of the device you are trying to control.