viruschidai / validate-vat

A European VAT number validating lib.
115 stars 39 forks source link

Error: The VAT database of the requested member country is unavailable, please try again later #18

Closed jirikrepl closed 5 years ago

jirikrepl commented 5 years ago

For the VAT GB227784183 I got this error:

Error: The VAT database of the requested member country is unavailable, please try again later

Is the database for the GB really unavailable? Or they VIES changed something in their API?

when I got that error above, I got also the same response from here:

screen shot 2019-01-22 at 13 14 20

After while both in my app and on that website it started working:

screen shot 2019-01-22 at 14 27 25
viruschidai commented 5 years ago

From my understanding, each country in EU has their own VAT database and server, occasionally the server may not be available due to maintenance.

jirikrepl commented 5 years ago

We had browser test on circle ci (which tested form with VAT field) and in the last month until recently, it was unavailable for a lot of times.

viruschidai commented 5 years ago

If it happens on the official EU vat validation site, I don't think it is an API issue. Next time when you see the error, maybe check the status here http://ec.europa.eu/taxation_customs/vies/vatRequest.htmlto see if the GB db is out of service