Doesn't respond with SERVFAIL when throwing an error #2
Cargando…
Referencia en una nueva incidencia
No se ha proporcionado una descripción.
Eliminar rama "%!s(<nil>) "
Eliminar una rama es permanente. Aunque la rama eliminada puede continuar existiendo durante un corto tiempo antes de que sea eliminada, en la mayoría de los casos NO PUEDE deshacerse. ¿Continuar?
When an error is thrown (such as malformed json data that cannot be written as binary), the server should respond with SERVFAIL
Here's how to observe this error:
Create a db file with bad data (the required field "exchange" is missing from the MX record):
fail.json
Installing and running the digd.js server:
In another terminal, while the server is running:
The server throws an error and nothing comes back. Instead a SERVFAIL should come back.
Note: we should also validate the date... but we should correct the server's handling of error cases before we correct the case that causes an error.