porisius / FicsitRemoteMonitoring

54 stars 12 forks source link

Error messages are not valid JSON #79

Open saffronjam opened 3 weeks ago

saffronjam commented 3 weeks ago

Error messages (in this case 404) produce invalid JSON: Currently:

{'error': 'Endpoint not found. Please consult Endpoint's documentation for more information.'}

It should be like this (double quotes is standard in JSON, and since a single quite is used in the message, it also fails to find the string with single quotes)

{
    "error": "Endpoint not found. Please consult Endpoint's documentation for more information."
}
porisius commented 3 weeks ago

That ought to be fixed now... thanks for catching that. https://github.com/porisius/FicsitRemoteMonitoring/commit/6d0f641bd658cc3aa9f43efe4142e70d45d30e03

image