Node.js on Windows: slight change necessary

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rendalli
    Junior Member
    • Oct 2013
    • 4

    #1

    Node.js on Windows: slight change necessary

    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:

    Code:
    {
    hostname: 'api.betfair.com/exchange/betting',
               path: '/rest/v1.0/' + operationName + '/',
                method: 'POST',
               [.....]
    }
    doesn't work for me, but:

    Code:
    {
    hostname: 'api.betfair.com',
               path: '[B]/exchange/betting/[/B]rest/v1.0/' + operationName + '/',
                method: 'POST',
               [.....]
    }
    seems to work.
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    API-NG is still evolving, I just have no time to keep it up. And I have no time to document the lib, it is very difficult to use it without doc and tutorial.

    I am too busy with non-Betfair projects.
    Betfair Bots Made Easy

    Comment

    Working...
    X