node-etsy icon indicating copy to clipboard operation
node-etsy copied to clipboard

http.Client.prototype.request is deprecated

Open raineorshine opened this issue 11 years ago • 0 comments

I ran into some trouble using this module since it relies on a deprecated version of the node core http module.

Line 377 of etsy.js:

        request = http.Client.prototype.request.call(
            this._client,
            http_method,
            request_url,
            headers
        );

This needs to be updated to use http.request of current node. I'm sorry I don't have time for a pull request, but hopefully documenting this will at least some others some time if they are running into the same problem!

raineorshine avatar Aug 19 '14 01:08 raineorshine