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

validateAddress doesn't work. Endpoint 404 error is thrown.

Open MikeSpock opened this issue 3 years ago • 3 comments

validateAddress fails permanently.

 const client = new Taxjar({
    apiUrl: process.env.TAXJAR_API_URL,
    apiKey: process.env.TAXJAR_TOKEN
});

 client.validateAddress({
        country: 'US',
        state: 'AZ',
        zip: '85297',
        city: 'Gilbert',
        street: '3301 South Greenfield Rd'
    }).then(res => {
        console.log("RES",res)
        res.addresses; // Addresses object
    }).catch(e => {
        console.error(e)
    });

Throws and error:

    TaxjarError: Not Found - No such route 'POST /v2/addresses/validate'
    at proxyError (/test/node_modules/taxjar/dist/util/request.js:9:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  error: 'Not Found',
  detail: "No such route 'POST /v2/addresses/validate'",
  status: 404
}

MikeSpock avatar Nov 09 '22 07:11 MikeSpock

Any chance of someone looking into this? It happens for me on the testing endpoint.

genio avatar Jul 15 '24 17:07 genio