Closed knynkwl closed 3 years ago
@knynkwl that's a general connection failure message. Are you getting that error for every request? Was it working at some point?
Does the "Test Connection" button work for you in the control panel settings?
Looks like validation is working. We get this error at any point trying to update a customer's address.
When updating an address:
@knynkwl - you could try disabling address verification in the plugin settings. Avalara's address validation is super strict. Also if you turn on debugging you should see the full request and response from Avalara in the log, which might help verify if the issue is just a bad address (or one Avalara thinks is bad).
address verification is disabled :(
Enabling debugging setting doesn't give any more info, unfortunately.
Hey so I figured it out.
I think it may be helpful to create some other errors based on the response.
When returning the response in your plugin I get two different things.
When Address Validation is enabled:
Client error: `GET https://sandbox-rest.avatax.com/api/v2/addresses/resolve?line1=*******&line2=&line3=&city=*********&country=US&textCase=Mixed` resulted in a `401 Unauthorized` response:
{"error":{"code":"SubscriptionRequired","message":"This API requires a subscription to AutoAddress.","target":"CustomerA (truncated...)
General Connection:
Client error: `POST https://sandbox-rest.avatax.com/api/v2/transactions/create` resulted in a `401 Unauthorized` response:
{"error":{"code":"SubscriptionRequired","message":"This API requires a subscription to AvaTaxPro or BasicReturns.","targ (truncated...)
It might be better to log the error response so we know the issue.
For example, this would be much more helpful.
We are running into this error. Any idea where this error is coming from or how to fix it?
[Error] Request to avatax.com failed