Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heartbeat is not working anymore #148

Open
NielsLinde opened this issue Dec 20, 2022 · 12 comments
Open

heartbeat is not working anymore #148

NielsLinde opened this issue Dec 20, 2022 · 12 comments

Comments

@NielsLinde
Copy link

The heartbeat is calling tls://ec.europa.eu:443 but there has been a change on this website.

Now the status code is "HTTP/1.1 301 Moved Permanently" and the heartbeat is failing :
https://github.com/DragonBe/vies/blob/master/src/Vies/HeartBeat.php#L161

@domantasslai
Copy link

domantasslai commented Dec 20, 2022

I can approve, heartbeat is not working.

Response from readContents method:
array:11 [▼
0 => "HTTP/1.1 301 Moved Permanently"
1 => "Date: Wed, 21 Dec 2022 11:44:43 GMT"
2 => "Content-Length: 40616"
3 => "X-FPFIS: 179059083"
4 => "Location: https://commission.europa.eu/select-language?destination=/node/1"
5 => "Retry-After: 5"
6 => "Host: ec.europa.eu"
7 => "Server: Europa"
8 => "Connection: close"
9 => ""
10 => """



<title>Sorry - 179059083</title>


<script>
var cl = document.querySelector('html').classList;
cl.remove('no-js');
cl.add('has-js');
</script>
<script>
!function(a,b){"function"==typeof define&&define.amd?define([],function(){return a.svg4everybody=b()}):"object"==typeof module&&module.exports?module.expo ▶
</script>
<link
rel="stylesheet"
href="https://cdn1.fpfis.tech.ec.europa.eu/ecl/v2.38.0/eu-preset-website/styles/ecl-eu-preset-website.css"
integrity="sha256-Mwc5eL1RymLbiIKrMvbZmz/FOXFlCnjAsGHs9AIb6Qc= sha384-NQOOLrEUKk++wGGz+h1BASx0NyOK/mTbtDF4gZ9e3x1ZgXrWnhG/FmQYfOsojLws sha512-86FiTtDKFNsK ▶
crossorigin="anonymous"
media="screen"
/>
<link
rel="stylesheet"
href="https://cdn1.fpfis.tech.ec.europa.eu/ecl/v2.38.0/eu-preset-website/styles/ecl-eu-preset-website-print.css"
integrity="sha256-lJYdcmklwVrgn2ZWsSN3GZ5G+1saXwJLjUX0mrcHoX4= sha384-Os00jmeauouS56K4NmaQ636onpfJqEMNVujF5H9lwauJgQTQjOLbdJvZbUwmtBti sha512-OjGa7LT06TdG ▶
crossorigin="anonymous"
media="print"
/>






Server inaccessibility


301 - Moved Permanently/ Request ID: 179059083













bg



Сървърът е временно недостъпен


Извиняваме се за неудобството. Моля, опитайте пак по-късно.









cs



Server je dočasně nedostupný


Omlouváme se za způsobené nepříjemnosti. Zkuste to prosím znovu později.









da



Serveren er midlertidigt utilgængelig


Vi undskylder ulejligheden. Prøv igen senere.









de



Der Server ist vorübergehend nicht verfügbar


Wir entschuldigen uns für etwaige Unannehmlichkeiten. Bitte
versuchen Sie es später noch einmal.









el



Ο διακομιστής δεν είναι διαθέσιμος προσωρινά


Ζητούμε συγγνώμη για τυχόν προβλήματα. Δοκιμάστε ξανά αργότερα.









en



The server is temporarily unavailable


We apologise for any inconvenience. Please try again later.









es



El servidor no está disponible temporalmente


Le rogamos disculpe las molestias. Vuelva a intentarlo más
tarde.









et



Server ei ole ajutiselt kättesaadav


Palume vabandust tekkinud ebamugavuste pärast. Palun proovige
hiljem uuesti.









fi



Palvelin on väliaikaisesti poissa käytöstä


Pahoittelemme mahdollista haittaa. Yritä myöhemmin uudelleen.









fr



Le serveur est temporairement indisponible


Veuillez nous excuser pour ce désagrément. Merci de réessayer
plus tard.









ga



Níl fáil ar an bhfreastalaí i láthair na huaire


Is oth linn an chiotaí. Bain triail as arís ar ball.









hr



Poslužitelj je privremeno nedostupan


Ispričavamo se zbog neugodnosti. Pokušajte ponovno kasnije.











hu



A szerver átmenetileg nem érhető el, kérjük, próbálkozzon újra
később


Az esetleges kellemetlenségekért elnézését kérjük.









it



Il server è temporaneamente non disponibile


Ci scusiamo per il disagio arrecato. Riprovare più tardi.









lt



Serveris laikinai neveikia


Atsiprašome už nepatogumus. Bandykite dar kartą vėliau.









lv



Serveris pagaidām nav pieejams


Atvainojamies par neērtībām. Mēģiniet vēlreiz vēlāk.









mt



Is-server mhux disponibbli temporanjament


Niskużaw ruħna għal kwalunkwe inkonvenjenza. Jekk jogħġbok erġa’
pprova aktar tard.









nl



De server is tijdelijk niet beschikbaar


Onze excuses voor het ongemak. Probeer het later nog een keer.









pl



Serwer jest tymczasowo niedostępny


Przepraszamy za wszelkie niedogodności. Proszę spróbować
później.









pt



O servidor está temporariamente indisponível


Pedimos desculpa pelo incómodo. Volte a tentar mais tarde.









ro



Serverul este temporar indisponibil


Ne cerem scuze pentru eventualele inconveniente. Vă rugăm să
reîncercați mai târziu.









sk



Server je dočasne nedostupný


Ospravedlňujeme sa za prípadné problémy, ktoré môžu v dôsledku
toho vzniknúť.









sl



Strežnik je začasno nedosegljiv


Opravičujemo se za morebitne nevšečnosti. Poskusite ponovno
pozneje.









sv



Servern är inte tillgänglig för tillfället


Vi ber om ursäkt för besväret. Försök igen senare.








<script>
svg4everybody({ polyfill: true });
</script>


"""
]

@sophie-kuehn
Copy link

I too. No longer working anymore.

@pkrzaczkowski-hippo
Copy link

We should monitor ec.europa.eu/taxation_customs/vies istead of ec.europa.eu

@jbrinksmeier
Copy link
Contributor

jbrinksmeier commented Dec 21, 2022

Looks like they have a all-new restful api now: https://viesapi.eu/vies-rest-api-documentation/
Anybody with information if the soap service will be maintained and how long? Should this library move to the mentioned rest api eventually?

@NielsLinde
Copy link
Author

No i don't think the https://viesapi.eu/ is a original vies service? But just a company which builds a rest api on top of it?
Also you have to pay for the usage.

But about the heartbeat? I'm not really sure it is really needed, but if so than the "ec.europa.eu/taxation_customs/vies" would be better. I can give it a try maybe this weekend to create a merge request

@pkrzaczkowski-hippo
Copy link

Yep it's a wrapper. A quick fix would be to add 301 header as a correct response - the same as 308 was added.

@jbrinksmeier
Copy link
Contributor

Yep it's a wrapper. A quick fix would be to add 301 header as a correct response - the same as 308 was added.

Given it more thought, that even appears to be the better solution to me as the heartbeat is about host availability, right?
Checking if their GUI is up seems...unimportant because it might not affect the soap service at all. We might even consider if we treat any http response below 400 as a success imo, to maybe stop the rat race if this is the second time already as @pkrzaczkowski-hippo mentioned.
Not to mention that this is also the easier fix as the the current HearBeat class is not built to handle an actual URL

@sophie-kuehn
Copy link

sophie-kuehn commented Dec 21, 2022

Client-side question: Is there actually any good reason for doing this heartbeat check? What is the risk if we don't use it at all? If the service is down, the VAT check fails and you have an error anyway.

@NielsLinde
Copy link
Author

Well @sophie-kuehn i don't use the heartbeat anymore and we just try catch the calls with a timeout.
You don't really need the heartbeat

@pmaruszczyk
Copy link

Pull Request #149

@dademaru
Copy link

dademaru commented Jan 20, 2023

@pmaruszczyk

Pull Request #149

tested and it fixes the issue, thanks!

@rikgirbes
Copy link

If fixed, why is this issue still open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants