mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
237 stars 63 forks source link

First argument must be a string or Buffer #21

Closed azachar closed 7 years ago

azachar commented 7 years ago

Hi there, I am having an issue with the latest version 1.3.2

TypeError: First argument must be a string or Buffer
    at ClientRequest.OutgoingMessage.write (_http_outgoing.js:443:11)
    at Client.module.exports.Client.callRest (/home/ubuntu/vividoctor/node_modules/mollie-api-node/lib/mollie/api/client.js:109:15)
    at Mandates.module.exports.Base.all (/home/ubuntu/vividoctor/node_modules/mollie-api-node/lib/mollie/api/resource/base.js:111:23)

while calling

mollie.customers_mandates.withParentId('cst_XXXXX').all(function (mandates) {
  **throws error**
});

When I switched back to 1.3.1. it just works fine.

Thanks for your fix.

Best regards, Andrej

Thijs-Riezebeek commented 7 years ago

Hi azachar,

Thank you for opening this issue! This is indeed a bug in our client and it has been fixed in version 1.3.3. Which I have just released.

Kind regards, Thijs Riezebeek