{"record":{"id":"d3810df8edf0bd29","repo":"ruvnet/ruflo","slug":"gzip-decompression-not-supported","errorCode":null,"errorMessage":"Gzip decompression not supported","messagePattern":"Gzip decompression not supported","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/wasm/loader.ts","lineNumber":160,"sourceCode":"      } else {\n        // Browser/Edge: Use fetch\n        const response = await customFetch(path, { signal });\n        if (response.ok) {\n          const buffer = await response.arrayBuffer();\n\n          if (path.endsWith('.gz')) {\n            // Decompress in browser using DecompressionStream if available\n            if (typeof DecompressionStream !== 'undefined') {\n              const stream = new Response(buffer).body;\n              if (stream) {\n                const decompressed = stream.pipeThrough(\n                  new DecompressionStream('gzip')\n                );\n                return new Response(decompressed).arrayBuffer();\n              }\n            }\n            // Fallback: assume server decompresses or use pako\n            throw new Error('Gzip decompression not supported');\n          }\n\n          return buffer;\n        }\n      }\n    } catch {\n      // Try next path\n      continue;\n    }\n  }\n\n  throw new Error(`Failed to load WASM module: ${moduleName}`);\n}\n\n/**\n * Instantiate a WASM module\n */\nasync function instantiateWasm<T>(","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/wasm/loader.ts#L142-L178","documentation":"The WASM loader fetched a .gz artifact in a browser/edge context where no gzip decompression path exists — neither DecompressionStream nor a bundled inflater is available. Rather than serving garbage bytes, the loader throws; use an uncompressed module or a decompression-capable environment.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/wasm/loader.ts:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide uncompressed WASM, or enable a decompression path (e.g. DecompressionStream or pako) for this environment."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}