You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[🐞 BUG] ASR model downloader saves HTML proxy/error pages as model files (no content validation) #353
Describe the bug
The ASR model downloader does not validate the content of what it downloads. On a network behind a corporate web proxy/SWG, the proxy can return an HTML block/notification page with HTTP 200 instead of the real file. The downloader writes that HTML straight to disk as the model payload, so every coremldata.bin ends up being <!DOCTYPE html>… rather than a CoreML binary.
The app then reports the model as cached and tries to load it, and CoreML fails with an opaque error.
Evidence (real failure)
Loading error:
[ERROR] [ASRService] ... Unable to load model ... parakeet-tdt-0.6b-v2-coreml/Preprocessor.mlmodelc/coremldata.bin
is not a valid .mlmodelc file because the first word (1329865020) is not recognizable.
1329865020 decoded little-endian begins with the bytes 3C 21 = <! — i.e. the file starts with <!DOCTYPE html>.
Inspecting the cache (~/Library/Application Support/FluidAudio/Models/...):
$ file .../Preprocessor.mlmodelc/coremldata.bin
.../coremldata.bin: HTML document text, UTF-8 text, with very long lines
$ head -c 80 .../coremldata.bin
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/>...
Everycoremldata.bin across all model variants (v2, v2-coreml, v3) was the identical ~22 KB HTML page — clearly a proxy-injected block page returned with HTTP 200, not the model.
Impact
Silent corruption: the app believes models are "cached on disk" and never recovers.
Particularly affects anyone on a corporate/enterprise network.
Suggested fix
In the model download path, validate each downloaded artifact before persisting:
Check HTTP Content-Type (reject text/html).
Check magic bytes / expected size of coremldata.bin (and/or the .tar), reject obviously-wrong payloads.
Treat redirects to non-CDN hosts as suspect.
On validation failure, delete the partial file and surface a clear, actionable error (see related issue on missing onboarding error feedback).
Note: the download likely lives in the FluidAudio dependency (AsrModels.downloadAndLoad), so the fix may belong upstream there — but FluidVoice could also validate post-download.
Environment
macOS 26 (Tahoe), Apple Silicon
Network: behind a corporate web proxy that returns an HTML page for blocked/intercepted downloads
Activity
fix: validate downloaded model content + surface onboarding errors (a…
fix: re-validate cached model files so corrupt HTML payloads are re-d…
fix: reject HTML-corrupt cached model files at provider preflights, n…
fix: validate downloaded model content + surface onboarding errors (a…
fix: re-validate cached model files so corrupt HTML payloads are re-d…
fix: reject HTML-corrupt cached model files at provider preflights, n…
Merge pull request #386 from postoso/fix/353-355-download-validation