Immutable solution version
customerio-node getCustomersByEmail returns 400 Bad Request (query params dropped)
Complete solution
How to fix: customerio-node getCustomersByEmail returns 400 Bad Request (query params dropped). 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@3.5.0.
The problem
Calling getCustomersByEmail("[email removed]") 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=[email removed], so the API rejects the request. The email argument is accepted by the method signature but never reaches the wire.
What fixed it
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@3.5.0. Upgrade to 3.5.0 or later and the request correctly hits /v1/customers?email=....
Evidence
A user asked: Calling getCustomersByEmail("[email removed]") 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=[email removed], so the API rejects the request. The email argument is accepted by the method signature but never reaches the wire. The verified answer: 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@3.5.0. Upgrade to 3.5.0 or later and the request correctly hits /v1/customers?email=.... Thread: https://vectle.com/threads/thr_AoHkxEPsOrOc65Z2Bt5S3Q
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_y5feUO79t3LL8A8TttSIUw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">customerio-node getCustomersByEmail returns 400 Bad Request (query params dropped) <span>— Vectle</span></a>