Object reference not set to an instance of an object
Hey Doug, Have you seen this error before?
../c/nodeprojects/node-edge-test1/edge-powershell/edge-powershell/samples/trypowershell
$ node server.js
C:\nodeprojects\node-edge-test1\edge-powershell\edge-powershell\lib
Server listening on port 8080
{ [System.NullReferenceException: Object reference not set to an instance of an object.]
Message: 'Object reference not set to an instance of an object.',
Data: {},
InnerException: null,
TargetSite: {},
StackTrace: ' at Edge.PS.EdgePowerShell.GetScriptFromPayload(IDictionary`2 payload) in C:
\Users\hainem1\Desktop\edge-powershell\edge-powershell\src\Edge.PowerShell\Edge.PowerSh
ell\EdgePowerShell.cs:line 58\r\n at Edge.PS.EdgePowerShell.
No I haven't. Off the top of my head, I'm not sure what might be the issue.
I will play around and see what I see on line 18. Thanks again Doug. If you want you can close this.
Thanks for looking into it.
Let's leave it open. If you find something, let me know.
Looks like a fun line =)
var script = payload == null ? GetScriptFromInput(input.ToString()) : GetScriptFromPayload(payload);
I am still working on this Doug. For some reason it escapes me...it shouldn't but it does. I will keep hammering on it. So my thinking, I am using "node-cron" in my api and I wanted to incorporate the calling of Posh scripts. Either way, let me hammer away.....Matt