openfisca / legislation-explorer

Explore legislation formulas and parameters.
https://legislation.demo.openfisca.org
GNU Affero General Public License v3.0
26 stars 12 forks source link

Frozen page on api internal server error #136

Closed sandcha closed 6 years ago

sandcha commented 6 years ago

When I search for https://legislation.openfisca.fr/paje_cmg, the page stays on Chargement des valeurs….

We could give more information to the user as on this peculiar context, an API call to this variable https://fr.openfisca.org/api/v20/variable/paje_cmg gives:

{
  "error": "Internal server error: 'ascii' codec can't decode byte 0xc3 in position 112: ordinal not in range(128)"
}
fpalluel commented 6 years ago

Hello, Same problem here, when trying to access 'cmu-c' and 'ppa'...

fpagnoux commented 6 years ago

This issue seems to have been solved

MattiSG commented 6 years ago

No, see for example http://nz.openfisca.org/rates_rebate. This happens anytime the app has not been rebuilt and the connected API has changed, which can be quite often!

fpagnoux commented 6 years ago

Ok, the underlying issue with the French API has been fixed, but the fact that the legislation explorer sucks at explaining what's going on in case of error hasn't been, thanks!

fpagnoux commented 6 years ago

To reproduce the issue: