I followed the tutorial found here: https://www.stellar.org/developers/horizon/reference/tutorials/follow-received-payments.html
and also tried the example found here: https://www.stellar.org/developers/js-stellar-sdk/reference/examples.html
I am using node.js and Visual Studio Code.
For some reason I cannot get this to work. The javascript files log nothing to the console neither during execution nor after any payment transactions are sent to the test net. Running the curl statement returns the error below. Any ideas on what I'm doing wrong? I don't understand how this works very well.
"Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Accept: text/event-stream" value of type "System.String" to
type "System.Collections.IDictionary".At line:1 char:9
+ curl -H "Accept: text/event-stream" "https:// horizon - testnet . stellar. ...
+
+ CategoryInfo : InvalidArgument: (: ) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand"
<edit> Added spaces to fix the auto-formatting that was messing it up.