hannob / vacdec

Python script to decode the EU Covid-19 vaccine certificate
The Unlicense
242 stars 89 forks source link

Index out of range #21

Closed idefixgallier closed 2 years ago

idefixgallier commented 2 years ago

Hey!

I have a question to this beautiful peace of software ... I don't know if its an issue with Jaris Fork or in the main branch but as i am lacking python knowledge i humble ask anyways:

/vacdec/vacdec --image-file /tmp/gettinger_v3.png

Traceback (most recent call last): File "/vacdec/vacdec", line 241, in main() File "/vacdec/vacdec", line 228, in main covid_cert_data = data[0].data.decode() IndexError: list index out of range

Can anyone give me a hint why this certificate shows that error please?

Kind regards Martin

hannob commented 2 years ago

This likely just means your QR code is either not an EU certificate (some countries issue their own certificates in a different format) or the picture quality is not good enough to properly read the QR code.

I can check if you send me the certificate via mail.

idefixgallier commented 2 years ago

Thanky you sir - This would be really really helpful!

I have two versions - the QR Code alone and the original official certificate. Austrian Greencheck app validates both correctly. May i kindly ask you for an email address as these are not my personal certificates and i do not want to attach them on this platform ...

idefixgallier commented 2 years ago

Never mind ... found one on your website ;)

hannob commented 2 years ago

My contact info: https://hboeck.de/en/contact.html

hannob commented 2 years ago

Clarified via email, was just an image quality issue, pyzbar was unable to decode.