3D generator download errors show HttpClient text, not i18n #1044

Closed
opened 2026-08-13 05:22:22 +00:00 by spikerj · 1 comment
Owner

downloadModel catch uses error?.message || "Failed to download 3D model".

HttpClient failures are HttpErrorResponse, which always has .message (Http failure response for ...: 500 err), so:

  1. The English fallback is dead for every HTTP error.
  2. The toast is Angular's raw status line, not a Transloco key (unlike generate/get which go through t()).

Pinned by threed-generator.hub.spec.ts ("downloadModel surfaces the HttpClient message, not the English fallback").

} catch (error: any) {
  this.errorSignal.set(error?.message || "Failed to download 3D model");
  throw error;
}
`downloadModel` catch uses `error?.message || "Failed to download 3D model"`. HttpClient failures are `HttpErrorResponse`, which always has `.message` (`Http failure response for ...: 500 err`), so: 1. The English fallback is dead for every HTTP error. 2. The toast is Angular's raw status line, not a Transloco key (unlike generate/get which go through `t()`). Pinned by `threed-generator.hub.spec.ts` ("downloadModel surfaces the HttpClient message, not the English fallback"). ```ts } catch (error: any) { this.errorSignal.set(error?.message || "Failed to download 3D model"); throw error; } ```
Author
Owner

Fixed in spikersoft-angular PR #823 (a0f0ccd9). Closing.

Fixed in `spikersoft-angular` [PR #823](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/823) (`a0f0ccd9`). Closing.
Sign in to join this conversation.