LAB-MI / attestation-deplacement-derogatoire-covid-19

MIT License
28 stars 21 forks source link

Can't generate attestation with my commune name #21

Open sigeal opened 3 years ago

sigeal commented 3 years ago

Attestation generation failed with "Saint-Laurent des Combes" as commune name, with error :

Uncaught (in promise) TypeError: options.size must be of type number or n, but was actually of type null

It works with whatever other commune name (ie. Châtignac) and every other data identical.

Environment : Windows 10 - Firefox 87.0 Also tested on Windows 10 with Chrome and Vivaldi Also tested on Android 11 with Firefox or Samsung browser

Guillaumeh3 commented 3 years ago

C'est un problème de longueur du nom.

sigeal commented 3 years ago

Thanks for the hint, now at least I have a workaround. The old version worked perfectly though, even with long commune names...

JV-conseil commented 3 years ago

@sigeal If your commune name is longer than 19 characters, the JS script generating the PDF will bug 👉 I've opened an issue #20 about it and proposed a bug correction https://github.com/LAB-MI/attestation-deplacement-derogatoire-covid-19/pull/19.

Here is a list of the 2109 French cities impacted by this bug 🐛 .