Comments (7)
@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?
from craft-avatax.
Looks like validation is working. We get this error at any point trying to update a customer's address.
from craft-avatax.
When updating an address:
from craft-avatax.
@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).
from craft-avatax.
address verification is disabled :(
Enabling debugging setting doesn't give any more info, unfortunately.
from craft-avatax.
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.
from craft-avatax.
For example, this would be much more helpful.
from craft-avatax.
Related Issues (20)
- 400 Error when validating address with AJAX HOT 3
- Craft Commerce 3.0 Support HOT 4
- Provide setting to select when order is committed HOT 4
- TypeError - Arg 1 passed to validateAddress() must be an instance of craft\commerce\models\Address? HOT 3
- Cannot edit plugin settings HOT 3
- Is this plugin a custom integration? HOT 2
- Invalid address error results in uncaught exception HOT 2
- License Key Value Stored in config/project/project.yaml HOT 5
- Cart passing all items as non-taxable HOT 2
- SalesTaxService.php - Request could not be completed HOT 5
- $model is undefined - SalesTaxService.php HOT 1
- After install event breaking automated testing HOT 9
- Allowing Programmatic Tax Calculation HOT 5
- Error if the order is saved through console command in 2.1.7 version HOT 1
- Guzzle Error HOT 2
- Does this plugin support international fees? (Customs / VAT / etc). HOT 1
- Craftcms 4 compatibility HOT 1
- Commerce V4, Address Validation Fails - Calling Unknown Method SalesTaxService:getState() HOT 1
- Craft 5 Compatibility? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-avatax.