
============================================================
CONFIGURACIÓN
  Total pedidos : 10
  Delay entre   : 2000ms
  Timeout axios : 30000ms
  Code inicio   : 999988800
============================================================

############################################################
PEDIDO 1/10 | code: 999988800 | items: 1
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:04.492Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 125
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988800,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 788ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:00:55 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59789}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59789}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:05.280Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 92
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59789,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 300ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:00:55 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:05.580Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59789}
  ⬅️  Status      : 200 OK | Tiempo: 434ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:00:55 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057759"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057759"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 2/10 | code: 999988801 | items: 2
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:08.016Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 196
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988801,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 314ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:00:58 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59790}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59790}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:08.330Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 163
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59790,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 322ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:00:58 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:08.652Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59790}
  ⬅️  Status      : 200 OK | Tiempo: 446ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:00:58 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057760"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057760"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 3/10 | code: 999988802 | items: 4
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:11.100Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 335
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988802,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 1017ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:02 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59791}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59791}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:12.117Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 302
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59791,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 321ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:02 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:12.439Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59791}
  ⬅️  Status      : 200 OK | Tiempo: 439ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:02 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057761"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057761"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 4/10 | code: 999988803 | items: 6
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:14.881Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 475
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988803,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 312ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:05 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59792}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59792}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:15.193Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 442
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59792,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 5387ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:08 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:20.580Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59792}
  ⬅️  Status      : 200 OK | Tiempo: 469ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:10 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057762"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057762"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 5/10 | code: 999988804 | items: 8
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:23.052Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 615
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988804,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 311ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:13 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59793}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59793}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:23.363Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 582
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59793,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 340ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:13 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:23.703Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59793}
  ⬅️  Status      : 200 OK | Tiempo: 452ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:13 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057763"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057763"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 6/10 | code: 999988805 | items: 10
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:26.157Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 755
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988805,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0}]}
  ⬅️  Status      : 200 OK | Tiempo: 318ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:16 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59794}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59794}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:26.476Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 722
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59794,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0}]}
  ❌  ERROR CODE    : ECONNRESET
  ❌  ERRNO         : N/A
  ❌  SYSCALL       : N/A
  ❌  MESSAGE       : read ECONNRESET
  ❌  Tiempo error  : 280ms
  ❌  Stack         : Error: read ECONNRESET
    at Function.from (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/axios/dist/node/axios.cjs:874:24)
    at RedirectableRequest.handleRequestError (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/axios/dist/node/axios.cjs:3196:25)
    at RedirectableRequest.emit (events.js:412:35)
    at ClientRequest.eventHandlers.<computed> (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (events.js:400:28)
    at Socket.socketErrorListener (_http_client.js:475:9)
    at Socket.emit (events.js:400:28)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
    at Axios.request (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/axios/dist/node/axios.cjs:4236:41)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async postStep (/home/sanapp/api.sanapp.info/TEST_JD/test-pedidos-debug.js:98:21)
    at async postPHPPedido (/home/sanapp/api.sanapp.info/TEST_JD/test-pedidos-debug.js:190:15)
    at async runTest (/home/sanapp/api.sanapp.info/TEST_JD/test-pedidos-debug.js:228:20)
  ❌  Sin respuesta HTTP (conexión cortada antes de recibir)
  ❌  Req headers enviados  : N/A
  ❌  Socket bytesWritten   : 976
  ❌  Socket bytesRead      : 0
  ❌  Socket destroyed      : true
  ❌  Socket remoteAddress  : N/A
  ❌  Socket remotePort     : N/A

RESULTADO: ❌ FALLO [ECONNRESET en PASO B]
Esperando 2s...

############################################################
PEDIDO 7/10 | code: 999988806 | items: 11
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:28.759Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 825
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988806,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 343ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:18 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59795}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59795}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:29.102Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 792
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59795,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 377ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:19 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:29.479Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59795}
  ⬅️  Status      : 200 OK | Tiempo: 479ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:19 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057764"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057764"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 8/10 | code: 999988807 | items: 12
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:31.961Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 896
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988807,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 2824ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:23 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59796}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59796}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:34.785Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 863
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59796,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1}]}
  ⬅️  Status      : 200 OK | Tiempo: 1109ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:25 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:35.894Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59796}
  ⬅️  Status      : 200 OK | Tiempo: 494ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:26 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057765"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057765"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 9/10 | code: 999988808 | items: 15
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:38.391Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 1105
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988808,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0}]}
  ⬅️  Status      : 200 OK | Tiempo: 393ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:28 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"26","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","ID":59797}
  ⬅️  Parsed Body : {"RESP":"OK","ID":59797}

===== PASO B - regitemspedido.php =====

  ── PASO B ──
  ➡️  Timestamp : 2026-04-01T14:01:38.784Z
  ➡️  URL       : regitemspedido.php
  ➡️  Bytes     : 1072
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59797,"ITEMS":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0}]}
  ⬅️  Status      : 200 OK | Tiempo: 406ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:29 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"15","connection":"close","content-type":"text/html; charset=UTF-8"}
  ⬅️  Raw Body    : 
{"RESP":"OK"}
  ⬅️  Parsed Body : {"RESP":"OK"}

===== PASO C - grabepedido.php =====

  ── PASO C ──
  ➡️  Timestamp : 2026-04-01T14:01:39.190Z
  ➡️  URL       : grabepedido.php
  ➡️  Bytes     : 12
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"ID":59797}
  ⬅️  Status      : 200 OK | Tiempo: 488ms
  ⬅️  Resp Headers: {"date":"Wed, 01 Apr 2026 14:01:29 GMT","server":"Apache/2.4.41 (Win64) PHP/7.3.12","x-powered-by":"PHP/7.3.12","access-control-allow-origin":"*","content-length":"36","connection":"close","content-type":"application/json"}
  ⬅️  Raw Body    : 
{"RESP":"OK","NUMERO":"APP057766"}
  ⬅️  Parsed Body : {"RESP":"OK","NUMERO":"APP057766"}

RESULTADO: ✅ OK
Esperando 2s...

############################################################
PEDIDO 10/10 | code: 999988809 | items: 20
############################################################

===== PASO A - regpedido.php =====

  ── PASO A ──
  ➡️  Timestamp : 2026-04-01T14:01:41.681Z
  ➡️  URL       : regpedido.php
  ➡️  Bytes     : 1455
  ➡️  Req Headers: {"Accept":"application/json, text/plain, */*"}
  ➡️  Data      : {"NIT":"1000255281","OBS":"","code":999988809,"item":[{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0},{"BARRAS":"1002293UND","CANT":1,"PRUNIT":6800,"DTOP":99.99,"PROMO":1},{"BARRAS":"77071858108080","CANT":12,"PRUNIT":6800,"DTOP":0,"PROMO":1},{"BARRAS":"100308UND","CANT":2,"PRUNIT":9600,"DTOP":99.99,"PROMO":1},{"BARRAS":"7702404009070","CANT":1,"PRUNIT":44300,"DTOP":0,"PROMO":1},{"BARRAS":"7702511000281","CANT":1,"PRUNIT":22000,"DTOP":0,"PROMO":0}]}
  ❌  ERROR CODE    : ECONNRESET
  ❌  ERRNO         : N/A
  ❌  SYSCALL       : N/A
  ❌  MESSAGE       : read ECONNRESET
  ❌  Tiempo error  : 249ms
  ❌  Stack         : Error: read ECONNRESET
    at Function.from (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/axios/dist/node/axios.cjs:874:24)
    at RedirectableRequest.handleRequestError (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/axios/dist/node/axios.cjs:3196:25)
    at RedirectableRequest.emit (events.js:412:35)
    at ClientRequest.eventHandlers.<computed> (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/follow-redirects/index.js:49:24)
    at ClientRequest.emit (events.js:400:28)
    at Socket.socketErrorListener (_http_client.js:475:9)
    at Socket.emit (events.js:400:28)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
    at Axios.request (/home/sanapp/api.sanapp.info/TEST_JD/node_modules/axios/dist/node/axios.cjs:4236:41)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async postStep (/home/sanapp/api.sanapp.info/TEST_JD/test-pedidos-debug.js:98:21)
    at async postPHPPedido (/home/sanapp/api.sanapp.info/TEST_JD/test-pedidos-debug.js:181:15)
    at async runTest (/home/sanapp/api.sanapp.info/TEST_JD/test-pedidos-debug.js:228:20)
  ❌  Sin respuesta HTTP (conexión cortada antes de recibir)
  ❌  Req headers enviados  : N/A
  ❌  Socket bytesWritten   : 1705
  ❌  Socket bytesRead      : 0
  ❌  Socket destroyed      : true
  ❌  Socket remoteAddress  : N/A
  ❌  Socket remotePort     : N/A

RESULTADO: ❌ FALLO [ECONNRESET en PASO A]

============================================================
RESUMEN FINAL:
  #    code         items  bytes(A)   tA(ms)   tB(ms)   tC(ms)   resultado
  --------------------------------------------------------------------------------
  1    999988800    1      125        788      300      434      ✅ OK
  2    999988801    2      196        314      322      446      ✅ OK
  3    999988802    4      335        1017     321      439      ✅ OK
  4    999988803    6      475        312      5387     469      ✅ OK
  5    999988804    8      615        311      340      452      ✅ OK
  6    999988805    10     755        318      280      -        ❌ FALLO [ECONNRESET en PASO B]
  7    999988806    11     825        343      377      479      ✅ OK
  8    999988807    12     896        2824     1109     494      ✅ OK
  9    999988808    15     1105       393      406      488      ✅ OK
  10   999988809    20     1455       249      -        -        ❌ FALLO [ECONNRESET en PASO A]
============================================================

  Exitosos : 8
  Fallidos : 2
    1x ❌ FALLO [ECONNRESET en PASO B]
    1x ❌ FALLO [ECONNRESET en PASO A]
============================================================
