Giter VIP home page Giter VIP logo

Comments (7)

siffring avatar siffring commented on August 17, 2024

@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.

knynkwl avatar knynkwl commented on August 17, 2024

Looks like validation is working. We get this error at any point trying to update a customer's address.

Screen Shot 2021-04-20 at 12 47 10 PM

from craft-avatax.

knynkwl avatar knynkwl commented on August 17, 2024

When updating an address:

Screen Shot 2021-04-20 at 12 48 32 PM

from craft-avatax.

imagehat avatar imagehat commented on August 17, 2024

@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.

knynkwl avatar knynkwl commented on August 17, 2024

address verification is disabled :(

Enabling debugging setting doesn't give any more info, unfortunately.

Screen Shot 2021-04-20 at 1 34 09 PM

from craft-avatax.

knynkwl avatar knynkwl commented on August 17, 2024

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.

knynkwl avatar knynkwl commented on August 17, 2024

For example, this would be much more helpful.

Screen Shot 2021-04-20 at 2 15 19 PM

Screen Shot 2021-04-20 at 2 14 48 PM

from craft-avatax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.