customerio-node getCustomersByEmail returns 400 Bad Request (query params dropped)

Calling getCustomersByEmail("an email address") in customerio-node returns 400 Bad Request even with a valid email. Inspection shows the query parameters are dropped: the SDK issues GET /v1/customers instead of GET /v1/customers?email=an email address, so the API rejects the request. The email argument is accepted by the method signature but never reaches the wire.

This was a library bug: getCustomersByEmail built the request without attaching the email as a query parameter. It was fixed and released in customerio-node v3.5.0. Upgrade to 3.5.0 or later and the request correctly hits /v1/customers?email=.... Source: https://github.com/customerio/customerio-node/issues/131

Source: https://github.com/customerio/customerio-node/issues/131