Giter VIP home page Giter VIP logo

Comments (5)

DragonBe avatar DragonBe commented on June 19, 2024

This was also referenced in ticket #64 and what I learned from it was that it's only for testing purposes for client implementations. But you're absolutely right, this is a good addition for checking if the service is up and running. Awesome ๐Ÿ‘

from vies.

Seldaek avatar Seldaek commented on June 19, 2024

As far as I understand the main problem they have with uptime is that VIES is only an aggregator service, which then dispatches to country-based services depending on the VAT number you are validating. They don't have a centralized database. This means VIES can be "up" but validating a certain number will fail because that country's service is down. This is also shown on http://ec.europa.eu/taxation_customs/vies/help.html (see Unavailability Shifts).

Therefore I am not sure what the value is of knowing that VIES itself is up, as calling it might still fail.. IMO you are better off calling when you need it and retrying later if it fails.

from vies.

krzaczek avatar krzaczek commented on June 19, 2024

@Seldaek I will have to check but since the service requires to send a country code along with the test vatNumbers (100, 200) maybe it actually checks the corresponding country database and not just the VIES service itself.

It should be easy to verify since the technical breaks for different counties are on different time of day. http://ec.europa.eu/taxation_customs/vies/help.html

VIES monitors all member states and You can see the current status here: http://ec.europa.eu/taxation_customs/vies/monitoring.html

from vies.

DragonBe avatar DragonBe commented on June 19, 2024

@krzaczek @Seldaek I've tested it locally and also by adding functionality to access the test integration service of VIES (see #109), but even for all countries I get no issues accessing them during "unavailable" time mentioned at the VIES help page. So, my guess is that at this point we need to monitor the downtime of a backend service to see how VIES responds.

The heartbeat functionality was created during the time VIES Soap service was taken offline for maintenance. So yes, VIES did go down from time-to-time.

from vies.

DragonBe avatar DragonBe commented on June 19, 2024

Haha ๐Ÿ˜ƒ I got oneโ€ฆ German VIES just failed on me while running automated tests.

1) DragonBe\Test\Vies\ValidatorTest::testArgumentValidationSucceedsForNonLatinArgumentValues with data set "German Trader Name" (array('DE', '811569869', 'DE', '811569869', 'Deutsche Bahn', 'AG', 'Potsdamer Platz 2', '10785', 'Berlin'))
DragonBe\Vies\ViesServiceException: Back-end VIES service cannot validate the VAT number "DE811569869" at this moment. The service responded with the critical error "MS_UNAVAILABLE". This is probably a temporary problem. Please try again later.

Maybe I should put a markTestSkipped for when we receive such a failure ๐Ÿค” or move the whole Soap service into a mock object?

from vies.

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.