Inyección de fallos
Inyección de fallos para probar reintentos, timeouts y resiliencia: fallos aleatorios, fallar N veces y luego acertar de forma determinista, respuestas lentas o colgadas, conexiones cortadas, cuerpos truncados y cabeceras enormes. Todas las esperas terminan antes si el cliente se desconecta.
Tu cuenta desbloquea estos endpoints. Usa Try it en la página de cada endpoint para enviar peticiones.
Estos endpoints necesitan una cuenta gratuita. Crea una o inicia sesión para ver sus detalles y probarlos aquí.
- GETPOST
https://api.testingapis.com/api/chaos/abortDrop the connection without sending any responseDrop the connection without sending any response. - GETPOST
https://api.testingapis.com/api/chaos/flakyFail at random with 503 to test retriesFail at random with 503 to test retries. - GET
https://api.testingapis.com/api/chaos/huge-headersRespond with many large headersRespond with many large headers. - GET
https://api.testingapis.com/api/chaos/partialSend a truncated body, then drop the connectionSend a truncated body, then drop the connection. - GET
https://api.testingapis.com/api/chaos/random-latencyRespond with a realistic latency spreadRespond with a realistic latency spread. - GETPOST
https://api.testingapis.com/api/chaos/retry/{key}Fail the first N attempts for a key, then succeedFail the first N attempts for a key, then succeed. - DELETE
https://api.testingapis.com/api/chaos/retry/{key}Reset the attempt counter for a keyReset the attempt counter for a key. - GET
https://api.testingapis.com/api/chaos/slowWait a random time within a range, then respondWait a random time within a range, then respond. - GET
https://api.testingapis.com/api/chaos/timeoutHang for a number of seconds, then respondHang for a number of seconds, then respond.
Petición de ejemplo
Drop the connection without sending any response. Referencia completa y botón Send (en inglés).
curl -X GET "https://api.testingapis.com/api/chaos/abort"The server drops the TCP connection immediately. Clients see a network error (for example curl exit code 56); there is no HTTP response.Inicia sesión para ver los detalles
Los parámetros, los ejemplos de petición y respuesta y el panel Try it en vivo de estos endpoints son para miembros con sesión iniciada. Las cuentas son gratuitas y se crean en unos segundos.