Skip to content

v0.1.0-beta.32

Pre-release
Pre-release

Choose a tag to compare

@stevenweaver stevenweaver released this 08 Jun 23:29
· 121 commits to main since this release

Bug Fixes

Resolves all four bugs from #135.

  • Surface real errors instead of HTML-as-JSON parser noise — When HyPhy fails to produce a result file, WasmAnalysisRunner was calling safeParseJSON on a 404 HTML page and surfacing raw V8 Unexpected token '<' errors (~290 events / 30 days). Guard against HTML responses and throw a clear "HyPhy analysis did not produce a result file" message instead. (#136)
  • Auto-switch tree source when no NJ tree is inferred — selectedTreeSource defaulted to 'inferred' even when the datareader didn't produce an NJ tree, so users hit "No NJ tree available" on Run Analysis (177 events / 30 days). Reactively switch to whichever source is actually available and tighten the error message when no fallback exists. (#136)
  • Pass numeric genetic code IDs instead of multi-word names — Aioli's exec() does a plain command.split(' ') with no quote handling, so multi-word genetic code names like 'Vertebrate mitochondrial' got split into --code Vertebrate + a stray mitochondrial, causing HyPhy to reject Vertebrate and consume the next option's value as a fallback (All, 0.1, Source). Pass the numeric geneticCodeId (always single-token) instead, matching the backend's behavior. (#136)
  • Always include a message field on unknown validation errors — 338 of 342 unknown events had no message payload because error.message was falsy. Fall back through error.name → error.toString() → sentinel so analytics always has something to work with. (#136)