I'm trying to use node.js on Windows and I couldn't run samplecode nor the very good looking module Algotrader made (Betfair for node.js).
At every https.request, it just gave me some exception saying it couldn't find the host (errnoException (dns.js:37:11)).
After alot of frustrating search, I figured that apparently on windows, you have to be precise about host and path:
doesn't work for me, but:
seems to work.
At every https.request, it just gave me some exception saying it couldn't find the host (errnoException (dns.js:37:11)).
After alot of frustrating search, I figured that apparently on windows, you have to be precise about host and path:
Code:
{
hostname: 'api.betfair.com/exchange/betting',
path: '/rest/v1.0/' + operationName + '/',
method: 'POST',
[.....]
}
Code:
{
hostname: 'api.betfair.com',
path: '[B]/exchange/betting/[/B]rest/v1.0/' + operationName + '/',
method: 'POST',
[.....]
}


Comment