Skip to content

Fix 504 Gateway Timeout falsely reported as success in Nebula API calls#400

Merged
Shivansps merged 1 commit into
KnossosNET:mainfrom
Goober5000:fix/h13
May 9, 2026
Merged

Fix 504 Gateway Timeout falsely reported as success in Nebula API calls#400
Shivansps merged 1 commit into
KnossosNET:mainfrom
Goober5000:fix/h13

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

Previously, a GatewayTimeout response from any of mod/release, mod/release/update, mod/release/delete, or multiupload/finish was silently converted into a fabricated { result: true } reply, causing the UI to report success when the server may never have processed the request.

  • multiupload/finish: now returns null on 504, allowing Finish() to use its existing retry loop and CheckUploadDone() verification path rather than bypassing it with a fake success.

  • mod/release, mod/release/update, mod/release/delete: now return a non-null ApiReply with gatewayTimeout=true (result=false). The three callers (ReleaseMod, UpdateMetaData, DeleteModVersion) surface a clear warning asking the user to verify the operation on the Nebula website, rather than silently claiming it succeeded.

Also fixes the 504 status code check from a fragile .ToString() string comparison to the correct HttpStatusCode enum value.

Previously, a GatewayTimeout response from any of mod/release,
mod/release/update, mod/release/delete, or multiupload/finish was
silently converted into a fabricated { result: true } reply, causing
the UI to report success when the server may never have processed the
request.

- multiupload/finish: now returns null on 504, allowing Finish() to use
  its existing retry loop and CheckUploadDone() verification path rather
  than bypassing it with a fake success.

- mod/release, mod/release/update, mod/release/delete: now return a
  non-null ApiReply with gatewayTimeout=true (result=false). The three
  callers (ReleaseMod, UpdateMetaData, DeleteModVersion) surface a clear
  warning asking the user to verify the operation on the Nebula website,
  rather than silently claiming it succeeded.

Also fixes the 504 status code check from a fragile .ToString()
string comparison to the correct HttpStatusCode enum value.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wookieejedi
Copy link
Copy Markdown
Contributor

Things still work as expected

@Shivansps Shivansps merged commit 5d40938 into KnossosNET:main May 9, 2026
@Goober5000 Goober5000 deleted the fix/h13 branch May 9, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants