LANCommander/LANCommander.UI/Components
akifreak a439cf5638 Propagate init net failure instead of swallowing
The original catch block was simply swalloing errors instead of
propagating them upwards.
When the /api/Upload/Init request failed it set this.Key = null, logged
to the console, and returned normally. From the caller's perspective
Init() had succeeded.

Start() in the Blazor component then called Upload() immediately after,
which proceeded with this.Key = null. Every chunk was sent to the server
with a null key, the server returned 400 for each one, each UploadChunk
call threw, and the whole upload failed - but only after sending every
chunk, and only with the opaque "Error uploading chunk N/M" message
rather than anything pointing at the actual cause.

By removing the catch, an axios error in Init() propagates up through
the JS interop call InvokeVoidAsync("Init", ...) in Start(). That throws
a JSException in C#, Start() exits immediately before Upload() is ever
called, and the finally block resets Uploading so the UI recovers. The
user gets a failure where it actually happened.
2026-04-04 15:02:46 +02:00
..
BootstrapIcon Move components into subfolders 2025-09-06 13:09:47 -05:00
ByteSize Move components into subfolders 2025-09-06 13:09:47 -05:00
ByteSizeInput UI to edit media thumbnail sizes 2025-09-15 19:19:52 -05:00
Chat Update read status when sending message, scroll to bottom on new message, merge message into group if gap < 5 mins 2026-01-11 21:21:12 -06:00
ChunkUploader Propagate init net failure instead of swallowing 2026-04-04 15:02:46 +02:00
CodeInput Fix script editor bindings, update BlazorMonaco 2026-03-20 00:01:12 -05:00
DataList Fix null reference 2025-11-13 21:04:39 -06:00
DataTable Fix spacing in data table 2025-11-18 01:14:24 -06:00
ErrorHandler Add component for better Not Found message 2026-01-18 02:09:07 -06:00
FileManager Make ArchiveId nullable for file pickers 2026-02-07 19:19:33 -06:00
HelpButton Move components into subfolders 2025-09-06 13:09:47 -05:00
InfiniteLoader Update read status when sending message, scroll to bottom on new message, merge message into group if gap < 5 mins 2026-01-11 21:21:12 -06:00
InputGroup Fix spacing in data table 2025-11-18 01:14:24 -06:00
Loaders Fix game archive upload in web ui 2026-04-03 21:21:40 +02:00
LocalTime Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00
Markdown Fix chat component rendering 2025-12-30 18:08:20 -06:00
MonacoCodeEditor Fix script editor bindings, update BlazorMonaco 2026-03-20 00:01:12 -05:00
MouseArea Fix chat component rendering 2025-12-30 18:08:20 -06:00
RpcComponent Implementation of script debugger component with RPC via SignalR 2025-12-10 20:55:38 -06:00
SafeAvatar Fix default icon for chat thread 2025-11-13 21:04:48 -06:00
SafeImage Fix bundling, JS interop initialization 2026-01-03 18:26:30 -06:00
SplitPane Fix file manager styling 2026-01-24 23:02:54 -06:00
TagsInput Changing how null is detected and handled 2025-12-17 14:50:05 +11:00
Terminal Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00
TransferInput Move transfer to UI project 2025-09-06 13:20:05 -05:00
BaseComponent.cs Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00