kaazing / http2-cache.js

2 stars 11 forks source link

Bugs/reuse xhr #61

Open hthetiot opened 6 years ago

dpwspoon commented 6 years ago

LGTM

hthetiot commented 6 years ago
Uncaught Error: Unable to update readyState 0 vs 2
      at XMLHttpRequest.<anonymous> (lib/xhr.js:217:23)
      at OutgoingRequest.<anonymous> (lib/xhr.js:360:26)
      at IncomingResponse._onHeaders (node_modules/http2.js/lib/http.js:1347:8)
      at Stream._onHeaders (node_modules/http2.js/lib/protocol/stream.js:119:8)
      at Stream._writeUpstream (node_modules/http2.js/lib/protocol/stream.js:255:10)
      at Connection._receive (node_modules/http2.js/lib/protocol/connection.js:428:19)
      at Connection._write (node_modules/http2.js/lib/protocol/flow.js:103:10)
      at doWrite (_stream_writable.js:397:12)
      at writeOrBuffer (_stream_writable.js:383:5)
      at Connection.Writable.write (_stream_writable.js:290:11)
      at Decompressor.ondata (_stream_readable.js:639:20)
      at addChunk (_stream_readable.js:263:12)
      at readableAddChunk (_stream_readable.js:250:11)
      at Decompressor.Readable.push (_stream_readable.js:208:10)
      at Decompressor.Transform.push (_stream_transform.js:147:32)
      at Decompressor._transform (node_modules/http2.js/lib/protocol/compressor.js:1327:10)
      at Decompressor.Transform._read (_stream_transform.js:186:10)
      at Decompressor.Transform._write (_stream_transform.js:174:12)
      at doWrite (_stream_writable.js:397:12)
      at writeOrBuffer (_stream_writable.js:383:5)
      at Decompressor.Writable.write (_stream_writable.js:290:11)
      at Deserializer.ondata (_stream_readable.js:639:20)
      at addChunk (_stream_readable.js:263:12)
      at readableAddChunk (_stream_readable.js:250:11)
      at Deserializer.Readable.push (_stream_readable.js:208:10)
      at Deserializer.Transform.push (_stream_transform.js:147:32)
      at Deserializer._transform (node_modules/http2.js/lib/protocol/framer.js:136:16)
      at Deserializer.Transform._read (_stream_transform.js:186:10)
      at Deserializer.Transform._write (_stream_transform.js:174:12)
      at doWrite (_stream_writable.js:397:12)
      at writeOrBuffer (_stream_writable.js:383:5)
      at Deserializer.Writable.write (_stream_writable.js:290:11)
      at Endpoint._write (node_modules/http2.js/lib/protocol/endpoint.js:215:22)
      at doWrite (_stream_writable.js:397:12)
      at writeOrBuffer (_stream_writable.js:383:5)
      at Endpoint.Writable.write (_stream_writable.js:290:11)
      at Duplexify.ondata (node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:619:20)
      at addChunk (node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:291:12)
      at readableAddChunk (node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:278:11)
      at Duplexify.Readable.push (node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js:245:10)
      at Duplexify._forward (node_modules/websocket-stream/node_modules/duplexify/index.js:170:26)
      at DestroyableTransform.onreadable (node_modules/websocket-stream/node_modules/duplexify/index.js:134:10)
      at emitReadable_ (node_modules/websocket-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:504:10)
      at emitReadable (node_modules/websocket-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:498:62)
      at addChunk (node_modules/websocket-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:298:29)
      at readableAddChunk (node_modules/websocket-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:278:11)
      at DestroyableTransform.Readable.push (node_modules/websocket-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:245:10)
      at DestroyableTransform.Transform.push (node_modules/websocket-stream/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:148:32)
      at WebSocket.onmessage (node_modules/websocket-stream/stream.js:119:11)
      at WebSocket.onMessage (node_modules/websocket-stream/node_modules/ws/lib/WebSocket.js:442:14)
      at Receiver.onbinary (node_modules/websocket-stream/node_modules/ws/lib/WebSocket.js:848:10)
      at node_modules/websocket-stream/node_modules/ws/lib/Receiver.js:628:18
      at node_modules/websocket-stream/node_modules/ws/lib/Receiver.js:368:7
      at node_modules/websocket-stream/node_modules/ws/lib/PerMessageDeflate.js:249:5
      at afterWrite (_stream_writable.js:464:3)
      at onwrite (_stream_writable.js:455:7)
      at InflateRaw.afterTransform (_stream_transform.js:90:3)
      at Zlib.callback (zlib.js:515:5)

Node does not like to reuse